summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-11-20 16:24:44 -0500
committerJune McEnroe <june@causal.agency>2019-11-20 16:25:17 -0500
commitbfafc732c82dcff685b92e5dc113dd65a6e935da (patch)
tree5c5eb146c7a9737b8091b01a7d5ddec4fca56073
parentMove pounce to top of causal.agency (diff)
downloadsrc-bfafc732c82dcff685b92e5dc113dd65a6e935da.tar.gz
src-bfafc732c82dcff685b92e5dc113dd65a6e935da.zip
Remove color from 1sh prompts
The weird PSlit behaviour just causes more weirdness than it's worth.
The color I was using was barely different anyway.
-rw-r--r--home/.config/1sh/env.sh10
1 files changed, 1 insertions, 9 deletions
diff --git a/home/.config/1sh/env.sh b/home/.config/1sh/env.sh
index 105d80ed..362631e2 100644
--- a/home/.config/1sh/env.sh
+++ b/home/.config/1sh/env.sh
@@ -43,14 +43,6 @@ 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'
-
-# FIXME: Trailing PSlit sequence gets dropped.
-PSlit=$'\1'
-PS1="${PSlit}${af7}${PSlit}${PS1% }${PSlit}${sgr0}${PSlit} "
-RPS1="${PSlit}${af0}${PSlit}# ${PSlit}${af7}${PSlit}${RPS1}${PSlit}${sgr0}${PSlit}"
+fsl=$'\e\\'
 [ "${TERM%-*}" = 'xterm' ] && PS0="${tsl}${SSH_CLIENT:+\h:}\W${fsl}${PS0}"
2019-06-05git: update to v2.21.0Christian Hesse 2019-06-05ui-ssdiff: ban strncat()Christian Hesse 2019-06-05global: make 'char *path' const where possibleChristian Hesse 2019-05-20ui-shared: restrict to 15 levelsJason A. Donenfeld 2019-02-23ui-diff,ui-tag: don't use htmlf with non-formatted stringsChris Mayo 2019-02-23ui-ssdiff: resolve HTML5 validation errorsChris Mayo 2019-01-03filters: migrate from luacrypto to luaosslJason A. Donenfeld 2019-01-02ui-shared: fix broken sizeof in title setting and rewriteJason A. Donenfeld 2018-12-09git: update to v2.20.0Christian Hesse 2018-11-25ui-blame: set repo for sbJason A. Donenfeld 2018-11-25auth-filter: pass url with query string attachedJason A. Donenfeld 2018-11-21git: use xz compressed archive for downloadChristian Hesse 2018-10-12git: update to v2.19.1Christian Hesse 2018-09-11ui-ssdiff: ban strcat()Christian Hesse 2018-09-11ui-ssdiff: ban strncpy()Christian Hesse 2018-09-11ui-shared: ban strcat()Christian Hesse 2018-09-11ui-patch: ban sprintf()Christian Hesse 2018-09-11ui-log: ban strncpy()Christian Hesse 2018-09-11ui-log: ban strcpy()Christian Hesse 2018-09-11parsing: ban sprintf()Christian Hesse 2018-09-11parsing: ban strncpy()Christian Hesse 2018-08-28filters: generate anchor links from markdownChristian Hesse 2018-08-03Bump version.Jason A. Donenfeld 2018-08-03clone: fix directory traversalJason A. Donenfeld 2018-08-03config: record repo.snapshot-prefix in the per-repo configKonstantin Ryabitsev