Skip to content

Instantly share code, notes, and snippets.

@flyfire
Created July 24, 2013 15:18
Show Gist options
  • Save flyfire/6071532 to your computer and use it in GitHub Desktop.
Save flyfire/6071532 to your computer and use it in GitHub Desktop.
PS1='`a=$?;if [ $a -ne 0 ]; then a=" "$a; echo -ne "\[\e[s\e[1A\e[$((COLUMNS- 2))G\e[31m\e[1;41m${a:(-3)}\e[u\]\[\e[0m\e[7m\e[2m\]"; fi`\[\e[1;32m\]\u@\h:\[\e[0m\e[1; 34m\]\W\[\e[1;34m\]\$ \[\e[0m\]'
PS2='⌘ >>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment