Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

FateNozomi

🎯
Focusing
View GitHub Profile
View .bashrc
# Change command prompt
if grep -qE "(Microsoft|WSL)" /proc/version &> /dev/null ; then
export PS1='\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[36m\]$(__git_ps1)\[\033[00m\]\n\$ '
else
export PS1='\[\033]0;$PWD\007\]\[\033[32m\]\u@\h:\[\033[33m\]\w\[\033[36m\]`__git_ps1`\[\033[0m\]\n$ '
fi
# Set default editor
export EDITOR="vim"
You can’t perform that action at this time.