Skip to content

Instantly share code, notes, and snippets.

@vbauerster
Created May 11, 2014 08:35
Show Gist options
  • Save vbauerster/6dfb9b9a0ee1f5857816 to your computer and use it in GitHub Desktop.
Save vbauerster/6dfb9b9a0ee1f5857816 to your computer and use it in GitHub Desktop.
terminal prompt modifications
PS1='\[\e]1;My Desk\a\e]2;${PWD}\a\]\
[\u@ME \w]\n \#\$ '
PS1='\[\e]2;${PWD}\a\
\e[0;34m\]\
[\u@MyMacBook \w]\n \#\$ \
\[\e[m\]'
#Default, but Working Dir in blue color
PS1='\h:\[\e[0;34m\]\W \[\e[m\]\u\$ '
#Reverse video of Working Dir
PS1='\[\e]2;${PWD}\a\
\e[0;33m\]\
[\u@MyMacBook \e[7m\w\e[27m]\n \#\$ \
\[\e[m\]'
#Olive colors theme:
#[vbauer@Vladimirs-MacBook-Pro:~/Desktop]
# 6$ ls
PS1='\[\e]2;${PWD}\a\
\e[0;33m\]\
[\u@\h:\w]\n \#\$ \
\[\e[m\]'
#Reverse video of Working Dir
PS1='\[\e]2;${PWD}\a\
\e[0;33m\]\
[\u@\h:\e[7m\w\e[27m]\n \#\$ \
\[\e[m\]'
#Olive colors theme:
#vbauer@Vladimirs-MacBook-Pro:~/IdeaProjects/sts/AS-Barcode
#16$ ls
PS1='\[\e]2;${PWD}\a\
\e[0;33m\]\
\u@\h:\w\n\#\$ \
\[\e[m\]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment