aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-09-28 01:04:57 +0000
committerDuncaen <mail@duncano.de>2017-09-28 01:04:57 +0000
commit067059aeea26df93b1987691e738153686a112a5 (patch)
treeb581c93a76faed62cd7d67cd70fd3f5f97362609
parenta507d19a2b82b994f1062d5b583589fbd49dbe57 (diff)
downloaddotfiles-067059aeea26df93b1987691e738153686a112a5.tar.gz
mksh: fix prompt in screen
-rw-r--r--mkshrc18
1 files changed, 9 insertions, 9 deletions
diff --git a/mkshrc b/mkshrc
index 218afc6..738b51c 100644
--- a/mkshrc
+++ b/mkshrc
@@ -156,15 +156,7 @@ export HISTFILE HISTSIZE SHELL
[ -r ~/.aliases ] && . ~/.aliases
case "$TERM" in
-network|dump)
- PS1=$'\001\r''$(\
-((r=$?)) && e="?$r" || e=;\
-d=${PWD/$HOME/\~}; d=${d##*/};\
-[ "$SSH_CONNECTION" ] && s="@${HOSTNAME:=$(hostname)}" || s=;\
-((USER_ID)) && i=\$ || i=\#;\
-print "$d$s$e$i ")'
-;;
-xterm|*-256color)
+xterm|screen|*-256color)
alias weechat='print "\033]0;weechat\a$d$s$e$i " && weechat'
PS1=$'\001\r''$(\
((e=$?)) && e="?\e[0;31;40m$e\e[0m" || e=
@@ -173,4 +165,12 @@ d=${PWD/$HOME/\~}; d=${d##*/};\
i=\#; ((USER_ID)) && i=\$;\
\print "\033]0;$d$s$i\a$d$s$e$i") '
;;
+network|dump|*)
+ PS1=$'\001\r''$(\
+((r=$?)) && e="?$r" || e=;\
+d=${PWD/$HOME/\~}; d=${d##*/};\
+[ "$SSH_CONNECTION" ] && s="@${HOSTNAME:=$(hostname)}" || s=;\
+((USER_ID)) && i=\$ || i=\#;\
+print "$d$s$e$i ")'
+;;
esac