Skip to content

Instantly share code, notes, and snippets.

@mdrx-io
Created January 28, 2017 18:56
Show Gist options
  • Save mdrx-io/0c026685d652b65d9b6140f374557b78 to your computer and use it in GitHub Desktop.
Save mdrx-io/0c026685d652b65d9b6140f374557b78 to your computer and use it in GitHub Desktop.
Bash prompt
# Crunchex's Bash Prompt
# Reset
Color_Off='\[\e[0m\]' # Text Reset
# Colors will work nice when used with "Solarized" palette.
# Nothing new here
White='\[\e[0;37m\]' # White
BPurple='\[\e[1;35m\]' # Purple
Green='\[\e[0;32m\]' # Green
Blue='\[\e[0;34m\]' # Blue
Yellow='\[\e[0;33m\]' # Yellow
Purple='\[\e[0;35m\]' # Purple
BWhite='\[\e[1;37m\]' # White
PS1="${White}┌─ ${Blue}\@ ${White}in ${Yellow}\w ${White}\n└───> ${Color_Off}"
# reset color after prompt
trap "echo -ne '\e[0m'" DEBUG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment