View previous topic :: View next topic |
Author |
Message |
pktunit n00b

Joined: 04 Aug 2010 Posts: 2
|
Posted: Wed Aug 04, 2010 9:10 pm Post subject: flag prompts |
|
|
I had a cool idea i thought i might share. BASH prompts with different flag colors. I thought this would be a cool way for me to show which host i was connected to without printing the hostname. Here are some i put together. It's pretty basic so you can add what you like. Anyways I thought it was kinda interesting to share.
A good source for the colors is: http://www.ibm.com/developerworks/linux/library/l-tip-prompt/
Anyways just paste the PS1=blah part into your bash prompt for anybody who is confused.
Argentina PS1='\[\e[01;37m\]$PWD \[\e[01;36m\]>\[\e[01;37m\]>\[\e[01;36m\]>\[\e[00m\] '
Canada PS1='\[\e[01;37m\]$PWD \[\e[01;31m\]>\[\e[01;37m\]>\[\e[01;31m\]>\[\e[00m\] '
China PS1='\[\e[01;37m\]$PWD \[\e[01;31m\]>\[\e[01;33m\]>\[\e[01;31m\]>\[\e[00m\] '
Israel PS1='\[\e[01;37m\]$PWD \[\e[01;37m\]>\[\e[02;34m\]>\[\e[01;37m\]>\[\e[00m\] '
Italy PS1='\[\e[01;37m\]$PWD \[\e[01;31m\]>\[\e[01;37m\]>\[\e[01;32m\]>\[\e[00m\] '
Jamaica PS1='\[\e[01;37m\]$PWD \[\e[01;33m\]>\[\e[01;30m\]>\[\e[01;32m\]>\[\e[00m\] '
Japan PS1='\[\e[01;37m\]$PWD \[\e[01;37m\]>\[\e[01;31m\]>\[\e[01;37m\]>\[\e[00m\] '
Mexico PS1='\[\e[01;37m\]$PWD \[\e[01;32m\]>\[\e[01;37m\]>\[\e[01;31m\]>\[\e[00m\] '
Nigeria PS1='\[\e[01;37m\]$PWD \[\e[01;32m\]>\[\e[01;37m\]>\[\e[01;32m\]>\[\e[00m\] '
USA PS1='\[\e[01;37m\]$PWD \[\e[01;31m\]>\[\e[01;37m\]>\[\e[01;34m\]>\[\e[00m\] '
Anna Sui PS1='\[\e[01;37m\]$PWD \[\e[01;30m\]^+-\[\e[01;37m\]%\[\e[01;35m\]+-_\[\e[00m\] '
Canada Two PS1='\[\e[01;37m\]$PWD \[\e[01;31;41m\] \[\e[01;37;47m\]*\[\e[01;31;41m\] \[\e[00m\] '
Rhastafarian PS1='\[\e[01;37m\]$PWD \[\e[01;31m\]>\[\e[01;33m\]>\[\e[01;32m\]>\[\e[00m\] '
Tiffanys PS1='\[\e[01;37m\]$PWD \[\e[01;36m\]^+-\[\e[01;37m\]%\[\e[01;36m\]+-_\[\e[00m\] '
Pirate PS1='\[\e[01;37m\]$PWD \[\e[01;30m\]>\[\e[01;37m\]>\[\e[01;30m\]>\[\e[00m\] '
Cheers,
Yagr |
|
Back to top |
|
 |
tomk Bodhisattva


Joined: 23 Sep 2003 Posts: 7221 Location: Sat in front of my computer
|
Posted: Thu Aug 05, 2010 8:46 am Post subject: |
|
|
Moved from Gentoo Chat to Documentation, Tips & Tricks as it fits better here. _________________ Search | Read | Answer | Report | Strip |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|