summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-11-20 21:47:12 -0500
committerJune McEnroe <june@causal.agency>2019-11-20 21:47:12 -0500
commit0ee40050e4640dde8b8c17a1c290ed06b96bc4af (patch)
treebf0f821c3b207ea74c3aa0df0ac09ba212ff9899
parentAdd \? exit status prompt expansion (diff)
downloadsrc-0ee40050e4640dde8b8c17a1c290ed06b96bc4af.tar.gz
src-0ee40050e4640dde8b8c17a1c290ed06b96bc4af.zip
Add \? to prompt
Diffstat (limited to '')
-rw-r--r--home/.config/1sh/env.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/home/.config/1sh/env.sh b/home/.config/1sh/env.sh
index 362631e2..e84b9f02 100644
--- a/home/.config/1sh/env.sh
+++ b/home/.config/1sh/env.sh
@@ -38,10 +38,9 @@ if [ "$(uname)" = 'Linux' ]; then
 	alias ls='ls --color=auto' grep='grep --color'
 fi
 
-# TODO: $? indicator.
 PS0=$'\n'
 PS1='\$ '
-RPS1="${SSH_CLIENT:+\h:}\w"
+RPS1="\? ${SSH_CLIENT:+\h:}\w"
 
 tsl=$'\e]0;'
 fsl=$'\e\\'