dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 70208e7d9aee73e10468f5df6eb54e29996c3c0c
parent a8913871f474e75358154ec3ca58d7a0b65a570e
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Sun, 13 Oct 2019 11:28:39 +0200

Use green only for 'ad' user

Diffstat:
M.yashrc | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/.yashrc b/.yashrc @@ -58,8 +58,11 @@ fi if [ "$(id -u)" -eq 0 ]; then _uc='\fr.' # red username for root _2c='\fr.' # red PS2 for root +elif [ "$(id -un)" = "ad" ]; then + _uc='\fg.' # green username + _2c= # PS2 in normal color for non-root user else - _uc=$_hc _hc= # same username color as hostname for non-root user + _uc='\fy.' _2c= # PS2 in normal color for non-root user fi # The main prompt ($YASH_PS1) contains the username, hostname, working