Last active
March 23, 2018 12:40
-
-
Save Herteby/9e7cba619de4462263936132d5277dc4 to your computer and use it in GitHub Desktop.
Convenient .bashrc settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [[ ${EUID} == 0 ]] ; then | |
PS1='\[\033[01;31m\]\u\[\033[01;34m\] \w \$\[\033[00m\] ' | |
else | |
PS1='\[\033[01;32m\]\u\[\033[01;34m\] \w \$\[\033[00m\] ' | |
fi | |
shopt -s cdspell | |
shopt -s nocaseglob | |
alias ls='ls -ohFGA' | |
alias ..='cd ..' | |
alias ~='cd ~' | |
alias npm-exec='PATH=$(npm bin):$PATH' | |
alias supercode='sudo code --user-data-dir="~/.vscode-root"' | |
cd(){ | |
builtin cd "$@" | |
ls | |
return | |
} | |
ls |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment