Ajout : séparation entre ahrc-laptop et ahrc-pc
This commit is contained in:
parent
ae805651ec
commit
c1438b1baa
2 changed files with 26 additions and 0 deletions
19
etc/bash/bashrc.d/ahurac-ahrc-laptop.bashrc
Normal file
19
etc/bash/bashrc.d/ahurac-ahrc-laptop.bashrc
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# Lines added by ahurac
|
||||||
|
|
||||||
|
# PS1
|
||||||
|
if [ "$(id -u)" -eq 0 ]; then
|
||||||
|
ps1_color_1=1
|
||||||
|
ps1_color_2=10
|
||||||
|
else
|
||||||
|
ps1_color_1=2
|
||||||
|
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)\]"
|
||||||
|
|
||||||
|
shrc_d=/usr/local/etc/sh/shrc.d
|
||||||
|
if [ -d "$shrc_d" ]; then
|
||||||
|
for i in "${shrc_d}/"*; do
|
||||||
|
. "$i"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
|
@ -10,3 +10,10 @@ else
|
||||||
fi
|
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)\]"
|
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)\]"
|
||||||
|
|
||||||
|
shrc_d=/usr/local/etc/sh/shrc.d
|
||||||
|
if [ -d "$shrc_d" ]; then
|
||||||
|
for i in "${shrc_d}/"*; do
|
||||||
|
. "$i"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue