dot

packages and services management
Log | Files | Refs | README

commit 96562131c7a1402f8632723d660a8c2254104b24
parent 6fad1cc0bd337e4a5e8535542bae0c39d6cf0a85
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sun,  4 Nov 2018 15:30:41 +0100

Merge branch 'master' of file:///home/josuah/dot/

Diffstat:
DMakefile | 3---
Mprofile.d/prompt.sh | 9+++++++--
2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,3 +0,0 @@ -all: - ./conf-bin - ./conf- diff --git a/profile.d/prompt.sh b/profile.d/prompt.sh @@ -19,5 +19,10 @@ case "$0" in ;; esac -[ "$(id -u)" = 0 ] && u='#' || u='$' -export PS1=$vt_bold$(uname -n)$vt_norm'$PWD'$vt_bold$u$vt_red'${?#0}'$vt_norm' ' +PS1= +PS1=$PS1$vt_bold$(uname -n)$vt_norm +PS1=$PS1'$PWD' +PS1=$PS1$vt_bold'$(id -u | sed -r "s/^0$/#/; s/[^#]+/$/")' +PS1=$PS1$vt_red'${?#0}'$vt_norm' ' + +export PS1