Add: Different Prompt for user/root
This commit is contained in:
parent
7e83d4d4c9
commit
93292f5f46
1 changed files with 7 additions and 1 deletions
8
bashrc
8
bashrc
|
@ -1,4 +1,10 @@
|
||||||
PS1='\[\033[0;32m\]me@\h\[\033[0m\] [\[\033[0;33m\]\w\[\]\[\033[0;32m\]] $ \[\033[0m\]'
|
if [ $UID -eq 0 ] ; then
|
||||||
|
PROMPT_SUFFIX='\[\033[1;31m\] # \[\033[0m\]'
|
||||||
|
else
|
||||||
|
PROMPT_SUFFIX='\[\033[0;32m\] $ \[\033[0m\]'
|
||||||
|
fi
|
||||||
|
|
||||||
|
PS1='\[\033[0;32m\]me@\h\[\033[0m\] [\[\033[0;33m\]\w\[\]\[\033[0;32m\]]'$PROMPT_SUFFIX
|
||||||
export PATH=$PATH:~/bin:~/local/bin
|
export PATH=$PATH:~/bin:~/local/bin
|
||||||
|
|
||||||
function tmux_title {
|
function tmux_title {
|
||||||
|
|
Loading…
Reference in a new issue