bundles/users: more colourful bash for everyone
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
70665abb0b
commit
adb808a683
2 changed files with 4 additions and 5 deletions
|
@ -5,16 +5,16 @@ __node_name="${node.name}"
|
||||||
<%text>
|
<%text>
|
||||||
if [[ "$(id -u)" -eq 0 ]]
|
if [[ "$(id -u)" -eq 0 ]]
|
||||||
then
|
then
|
||||||
export PS1='\[\e[1;34m\][\[\e[1;32m\]'"$__node_name"'\[\e[1;34m\]][\[\e[1;32m\]\u\[\e[1;34m\]@\[\e[1;32m\]\w\[\e[1;34m\]] $PRODWARNING> \[\e[0m\]'
|
export PS1='\[\e[1;34m\][\[\e[1;91m\]'"$__node_name"'\[\e[1;34m\]][\[\e[1;91m\]\u\[\e[1;34m\]@\[\e[1;91m\]$PWD\[\e[1;34m\]] > \[\e[0m\]'
|
||||||
else
|
else
|
||||||
export PS1='\[\e[1;0m\]['"$__node_name"'][\u@\w]\[\e[1;34m\] $PRODWARNING\[\e[1;0m\]> '
|
export PS1='\[\e[1;34m\][\[\e[1;32m\]'"$__node_name"'\[\e[1;34m\]][\[\e[1;32m\]\u\[\e[1;34m\]@\[\e[1;32m\]\w\[\e[1;34m\]] > \[\e[0m\]'
|
||||||
fi
|
fi
|
||||||
case $TERM in
|
case $TERM in
|
||||||
xterm*|rxvt*)
|
xterm*|rxvt*)
|
||||||
export PROMPT_COMMAND='echo -ne "\a\e]0;'"$__node_name"':${PWD/$HOME/~}\a"'
|
export PROMPT_COMMAND='echo -ne "\a\e]0;'"$__node_name"':${PWD}\a"'
|
||||||
;;
|
;;
|
||||||
screen*)
|
screen*)
|
||||||
export PROMPT_COMMAND='echo -ne "\a\ek'"$__node_name"':${PWD/$HOME/~}\e\\"'
|
export PROMPT_COMMAND='echo -ne "\a\ek'"$__node_name"':${PWD}\e\\"'
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
unset PROMPT_COMMAND
|
unset PROMPT_COMMAND
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
export PS1='\[\e[1;34m\][\[\e[1;32m\]'"$__node_name"'\[\e[1;34m\]][\[\e[1;32m\]\u\[\e[1;34m\]@\[\e[1;32m\]\w\[\e[1;34m\]] $PRODWARNING> \[\e[0m\]'
|
|
Loading…
Reference in a new issue