Skip to content

Instantly share code, notes, and snippets.

@humus
Last active November 9, 2015 04:45
Show Gist options
  • Save humus/3292b9fb359c1aaa39a9 to your computer and use it in GitHub Desktop.
Save humus/3292b9fb359c1aaa39a9 to your computer and use it in GitHub Desktop.
my bash prompt
PREV_PS1=$PS1
directories="\$(pwd | sed 's#\(/[^/.]\)[^/]\+#\1#g')"
cyan="\e[38;5;116m"
reset="\e[0m"
color_dirs="\e[38;5;160m"
yellow="\033[38;5;130m"
bold="\033[1m"
PS1="\n\[${orange}\]\[${bold}\]$directories\[${reset}\] \[${cyan}\]\`last_two_dirs\`\[${reset}\]\n\[${yellow}\]\`__git_ps1|sed 's/^[[:space:]]*//'\`\[${reset}\]\[${bold}\] \$ \[${reset}\]"
alias ls='ls --color=auto'
alias grep='grep --colour=auto'
test_prompt="${yellow}yellow ${cyan}cyan${color_dirs} color_dirs"
unset orange
unset reset
unset cyan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment