summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-01-13 14:46:01 -0500
committerJune McEnroe <june@causal.agency>2019-01-13 14:46:01 -0500
commitea50941cc3d3b829104dac8581ae0a9b1a48bb54 (patch)
tree2dc2ee449a356ead6f922f91c9bcb983f8bbf033
parentSet PSlit like NetBSD sh (diff)
downloadsrc-ea50941cc3d3b829104dac8581ae0a9b1a48bb54.tar.gz
src-ea50941cc3d3b829104dac8581ae0a9b1a48bb54.zip
Use colours in cash prompts
-rw-r--r--home/.config/cash/cashrc7
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}"
204d6cbd44c92f3678b6184625693&follow=1'>Set bot mode on downgradeJune McEnroe 2021-09-15Enter capsicum in downgradeJune McEnroe 2021-09-15Factor out common parts of downgrade messagesJune McEnroe 2021-09-14Add downgrade IRC botJune McEnroe 2021-09-14Sort by title if authors matchJune McEnroe 2021-09-13Swap-remove tags as they're foundJune McEnroe 2021-09-12Replace htagml regex with strncmpJune McEnroe 2021-09-11Also defer printing comment for lone close-parensJune McEnroe 2021-09-10Publish "git-comment"June McEnroe 2021-09-10Add git comment --pretty optionJune McEnroe 2021-09-08Defer printing comment if line is blank or closing braceJune McEnroe 2021-09-08Up default min-repeat to 30 linesJune McEnroe 2021-09-08Handle dirty lines in git-commentJune McEnroe 2021-09-08Document and install git-commentJune McEnroe 2021-09-08Add repeat and all options to git-commentJune McEnroe 2021-09-08Add group threshold to git-commentJune McEnroe