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
commit68fddefce950227a1d59e148526425d610700bf2 (patch)
tree56b5ba90e0a95f21c63bb8519aaba2ff886dc193
parentSet PSlit like NetBSD sh (diff)
downloadsrc-68fddefce950227a1d59e148526425d610700bf2.tar.gz
src-68fddefce950227a1d59e148526425d610700bf2.zip
Use colours in cash prompts
Diffstat (limited to '')
-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}"
a>June McEnroe 2024-10-07Add photos from September 28June McEnroe 2024-10-07Add photos from September 22June McEnroe 2024-09-25Add photos from September 15June McEnroe 2024-09-24Add photos from September 14June McEnroe 2024-09-24Add photos from September 12June McEnroe 2024-09-24Add photos from September 7June McEnroe 2024-09-24Allow not having descriptionsJune McEnroe 2024-09-23Automatically select the last used lens for a bodyJune McEnroe 2024-09-19Add photos from September 5June McEnroe 2024-09-15Add some more film stocks to the listJune McEnroe 2024-09-13Add photos from September 2June McEnroe 2024-09-13Add Fomapan 200 to films listJune McEnroe 2024-09-10Add August 29 picnic photosJune McEnroe 2024-09-08Apply some bold to trips renderingJune McEnroe 2024-09-08Render trips hopefully more efficientlyJune McEnroe 2024-09-08Allow removing bodies and lensesJune McEnroe 2024-09-08Limit body width so it looks less silly on desktopJune McEnroe 2024-09-07Handle no film being loadedJune McEnroe 2024-09-07Fancy up the text a littleJune McEnroe