Last active
November 9, 2015 04:45
-
-
Save humus/3292b9fb359c1aaa39a9 to your computer and use it in GitHub Desktop.
my bash prompt
This file contains 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
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