dot

packages and services management
Log | Files | Refs | README

commit 9548b24297d76db04a1c36176898d1c186f239c2
parent 93fa61d22f309c1ec3103d7156423db129ad2b65
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sat,  8 Dec 2018 10:47:30 +0100

distinguishible prompt

Diffstat:
Mprofile.d/prompt.sh | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/profile.d/prompt.sh b/profile.d/prompt.sh @@ -1,26 +1,26 @@ case "$0" in (*zsh) vt_red='${red}' - vt_green='${green}' + vt_cyan='${cyan}' vt_bold='${bold}' vt_norm='${norm}' ;; (*bash) vt_red=$(printf '\\[\033[31m\\]') - vt_green=$(printf '\\[\033[32m\\]') + vt_cyan=$(printf '\\[\033[36;1m\\]') vt_bold=$(printf '\\[\033[1m\\]') vt_norm=$(printf '\\[\033[m\\]') ;; (*) vt_red=$(printf '\033[31m') - vt_green=$(printf '\033[32m') + vt_cyan=$(printf '\033[36;1m') vt_bold=$(printf '\033[1m') vt_norm=$(printf '\033[m') ;; esac PS1= -PS1=$PS1$vt_bold$(uname -n) +PS1=$PS1$vt_cyan$(uname -n) PS1=$PS1$vt_norm'$PWD' PS1=$PS1$vt_bold$(id -u | sed -r "s/^0$/#/; s/[^#]+/$/") PS1=$PS1$vt_red'${?#0}'