dot

packages and services management
Log | Files | Refs | README

commit d90c26a64c44dc3b3b3e681cb3f98f5cf6c0932d
parent a3a392f1321164389e90fc92b6f72e6d3b937037
Author: Josuah Demangeon <mail@josuah.net>
Date:   Tue, 11 Dec 2018 20:44:14 +0100

keep colors for the content

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

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