From eabeca88160cdbbd94f5816f985bf1cc7fe2e5d2 Mon Sep 17 00:00:00 2001 From: Hippolyte Chauvin Date: Tue, 20 Jun 2023 20:57:37 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20:=20fichier=20de=20configuration=20de?= =?UTF-8?q?=20bash=20pour=20le=20syst=C3=A8me=20pour=20tera-io?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- etc/bash/bashrc.d/tera-io.bashrc | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 etc/bash/bashrc.d/tera-io.bashrc 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)\]" +