summary refs log tree commit diff
path: root/home/.config/1sh
diff options
context:
space:
mode:
Diffstat (limited to 'home/.config/1sh')
-rw-r--r--home/.config/1sh/env.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/home/.config/1sh/env.sh b/home/.config/1sh/env.sh
index 0c645e64..7b87c9d3 100644
--- a/home/.config/1sh/env.sh
+++ b/home/.config/1sh/env.sh
@@ -37,11 +37,17 @@ if [ "$(uname)" = 'Linux' ]; then
 	alias ls='ls --color=auto' grep='grep --color'
 fi
 
+PS0=$'\n'
+PS1='\$ '
+RPS1="${SSH_CLIENT:+\h:}\w"
+
 af0=$(tput setaf 0 || tput AF 0)
 af7=$(tput setaf 7 || tput AF 7)
 sgr0=$(tput sgr0 || tput me)
+tsl=$'\e]0;'
+fsl=$'\a'
 
 PSlit=$'\1'
-[ "${TERM%-*}" = 'xterm' ] && PS0=$'\e]0;\\W\a\n' || PS0=$'\n'
-PS1="${PSlit}${af7}${PSlit}\\\$${PSlit}${sgr0}${PSlit} "
-RPS1="${PSlit}${af0}${PSlit}# ${PSlit}${af7}${PSlit}\\w${PSlit}${sgr0}${PSlit}"
+PS1="${PSlit}${af7}${PSlit}${PS1% }${PSlit}${sgr0}${PSlit} "
+RPS1="${PSlit}${af0}${PSlit}# ${PSlit}${af7}${PSlit}${RPS1}${PSlit}${sgr0}${PSlit}"
+[ "${TERM%-*}" = 'xterm' ] && PS0="${tsl}${SSH_CLIENT:+\h:}\W${fsl}${PS0}"
/td> 2021-01-12List both Makefile and html.sh under README.7June McEnroe 2021-01-12Add htagml exampleJune McEnroe 2021-01-12Use mandoc and htagml for bin htmlJune McEnroe 2021-01-12Add htagmlJune McEnroe 2021-01-12Replace causal.agency with a simple mdoc pageJune McEnroe 2021-01-11Publish "Using vi"June McEnroe 2021-01-11Enable diff.colorMovedJune McEnroe 2021-01-10Set less search case-insensitiveJune McEnroe 2021-01-10Set EXINITJune McEnroe 2021-01-09Add c -t flag to print expression typeJune McEnroe 2021-01-05Update taglineJune McEnroe