Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
flag prompts
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
pktunit
n00b
n00b


Joined: 04 Aug 2010
Posts: 2

PostPosted: Wed Aug 04, 2010 9:10 pm    Post subject: flag prompts Reply with quote

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
View user's profile Send private message
tomk
Bodhisattva
Bodhisattva


Joined: 23 Sep 2003
Posts: 7221
Location: Sat in front of my computer

PostPosted: Thu Aug 05, 2010 8:46 am    Post subject: Reply with quote

Moved from Gentoo Chat to Documentation, Tips & Tricks as it fits better here.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
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