dotfiles

configuration files
git clone https://pi.duncano.de/git/dotfiles.git
Log | Files | Refs | README

commit 067059aeea26df93b1987691e738153686a112a5
parent a507d19a2b82b994f1062d5b583589fbd49dbe57
Author: Duncaen <mail@duncano.de>
Date:   Thu, 28 Sep 2017 01:04:57 +0000

mksh: fix prompt in screen

Diffstat:
mkshrc | 18+++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)

diff --git 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