If you have always dreamed to change the classic prompt of your favorite Shell, it is time to see how to do it. Open your tcsh's config that you can find in your home, it is called .tcshrc and inside, modify the line:
set prompt='(%n@%m %h)'
by
set prompt='<%T %/%B%{\033[1;31m%}>%{\033[0m%}%b'
Open a new terminal or juste write ". .bashrc" on your terminal, and miracle, you have now the time, your current path and a > in red and bold!
But if you want to have a flag of your favourite country on your prompt, you are also on the right place. Let's see some examples:
set prompt=' %{\033[1;44m%} %{\033[0m%}%{\033[1;47m%} %{\033[0m%}%{\033[1;41m%} %{\033[0m%} ~ '
set prompt=' %{\033[1;40m%} %{\033[0m%}%{\033[1;43m%} %{\033[0m%}%{\033[1;41m%} %{\033[0m%} ~ '
set prompt=' %{\033[1;42m%} %{\033[0m%}%{\033[1;47m%} %{\033[0m%}%{\033[1;41m%} %{\033[0m%} ~ '
If you prefer having a bash shell you can modify it too.
Comments
kSpy
Monday, February 14, 2011 - 12:37pm
Permalink
Swiss flag
Hello BadproG
I have a code if you want about the swiss flag I let the following code at your disposition now I hope it will be beautiful at yours eyes
kspy ;)
Mi-K
Monday, February 14, 2011 - 1:55pm
Permalink
Indeed
Add new comment