diff options
author | June McEnroe <june@causal.agency> | 2019-01-13 14:46:01 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-01-13 14:46:01 -0500 |
commit | ea50941cc3d3b829104dac8581ae0a9b1a48bb54 (patch) | |
tree | 2dc2ee449a356ead6f922f91c9bcb983f8bbf033 /home/.config/cash/cashrc | |
parent | Set PSlit like NetBSD sh (diff) | |
download | src-ea50941cc3d3b829104dac8581ae0a9b1a48bb54.tar.gz src-ea50941cc3d3b829104dac8581ae0a9b1a48bb54.zip |
Use colours in cash prompts
Diffstat (limited to 'home/.config/cash/cashrc')
-rw-r--r-- | home/.config/cash/cashrc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/home/.config/cash/cashrc b/home/.config/cash/cashrc index cefa0321..573d7c2d 100644 --- a/home/.config/cash/cashrc +++ b/home/.config/cash/cashrc @@ -33,4 +33,9 @@ alias gr='git rebase' gra='gr --abort' grc='gr --continue' grs='gr --skip' alias rand='openssl rand -base64 33' alias private='eval "$(gpg -d ~/.private)"' -RPS1='\W' +af7=$(tput setaf 7 || tput AF 7) +sgr0=$(tput sgr0 || tput me) + +PSlit=$'\1' +PS1="${PSlit}${af7}${PSlit}\$${PSlit}${sgr0}${PSlit} " +RPS1="${PSlit}${af7}${PSlit}\\W${PSlit}${sgr0}${PSlit}" |