diff --git a/etc/bash/bashrc.d/tera-io.bashrc b/etc/bash/bashrc.d/tera-io.bashrc new file mode 100644 index 0000000..5b443ad --- /dev/null +++ b/etc/bash/bashrc.d/tera-io.bashrc @@ -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)\]" +