2020-03-23 23:26:49 +00:00
|
|
|
source ~/.config/shell/functions
|
2020-03-08 18:58:52 +00:00
|
|
|
|
|
|
|
# ls aliases
|
|
|
|
|
|
|
|
alias ll='ls -alF'
|
|
|
|
alias la='ls -A'
|
|
|
|
alias l='ls -CF'
|
|
|
|
|
|
|
|
# Fancy prompt
|
|
|
|
|
|
|
|
PS1="\[\033[01;32m\]\u\[\033[00m\]:\[\033[01;34m\]\W\[\033[00m\]"
|
|
|
|
PS1="$PS1 \`if [ \$? = 0 ]; then echo -e '\[\033[01;32m\]:)';"
|
|
|
|
PS1="$PS1 else echo -e '\[\033[01;31m\]:(' \$?; fi\`\[\033[00m\]"
|
|
|
|
PS1="$PS1 \$(__git_ps1 \"(%s)\") \$ "
|