summary refs log tree commit diff
path: root/home/.config/cash
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-01-15 15:57:06 -0500
committerJune McEnroe <june@causal.agency>2019-01-15 15:57:06 -0500
commitcb89b3e01ea1b1fb6baf62d867208d58ab3c7b20 (patch)
treeb130cd6234a75883fe37873c812dcbc599400fe7 /home/.config/cash
parentUse flock(2) when loading and saving history (diff)
downloadsrc-cb89b3e01ea1b1fb6baf62d867208d58ab3c7b20.tar.gz
src-cb89b3e01ea1b1fb6baf62d867208d58ab3c7b20.zip
Use \$ in cash PS1 and add # to RPS1
Diffstat (limited to 'home/.config/cash')
-rw-r--r--home/.config/cash/env.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/home/.config/cash/env.sh b/home/.config/cash/env.sh
index 683ca26b..13482946 100644
--- a/home/.config/cash/env.sh
+++ b/home/.config/cash/env.sh
@@ -34,10 +34,11 @@ alias rand='openssl rand -base64 33'
 alias private='eval "$(gpg -d ~/.private)"'
 [ "$(uname)" = 'Linux' ] && alias ls='ls --color=auto' grep='grep --color'
 
+af0=$(tput setaf 0 || tput AF 0)
 af7=$(tput setaf 7 || tput AF 7)
 sgr0=$(tput sgr0 || tput me)
 
 PSlit=$'\1'
 [ "${TERM%-*}" = 'xterm' ] && PS0=$'\e]0;\\W\a\n' || PS0=$'\n'
-PS1="${PSlit}${af7}${PSlit}\$${PSlit}${sgr0}${PSlit} "
-RPS1="${PSlit}${af7}${PSlit}\\w${PSlit}${sgr0}${PSlit}"
+PS1="${PSlit}${af7}${PSlit}\\\$${PSlit}${sgr0}${PSlit} "
+RPS1="${PSlit}${af0}${PSlit}# ${PSlit}${af7}${PSlit}\\w${PSlit}${sgr0}${PSlit}"