forked from ahurac/dotfiles
Ajout : fichier de configuration de bash pour le système pour tera-io
This commit is contained in:
parent
69ce1a4568
commit
eabeca8816
1 changed files with 10 additions and 0 deletions
10
etc/bash/bashrc.d/tera-io.bashrc
Normal file
10
etc/bash/bashrc.d/tera-io.bashrc
Normal file
|
@ -0,0 +1,10 @@
|
|||
# PS1
|
||||
if [ "$(id -u)" -eq 0 ]; then
|
||||
ps1_color_1=1
|
||||
ps1_color_2=10
|
||||
else
|
||||
ps1_color_1=6
|
||||
ps1_color_2=4
|
||||
fi
|
||||
export PS1="{\[$(tput sgr0)\]\[$(tput bold)\]\[\033[38;5;${ps1_color_1}m\]\u@\h\[$(tput sgr0)\] \[$(tput sgr0)\]\[$(tput bold)\]\[\033[38;5;${ps1_color_2}m\]\W\[$(tput sgr0)\]}\\$ \[$(tput sgr0)\]"
|
||||
|
Loading…
Reference in a new issue