dotfiles

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

commit 6e8400a968a98d896764257eee211b1063bc3300
parent 735e32d8efafd6bc8c63f0fba7d2c81b353ffa01
Author: Duncaen <mail@duncano.de>
Date:   Mon, 10 Oct 2016 16:05:15 +0200

mksh: add host name to prompt for ssh connections

Diffstat:
mkshrc.d/90-prompt.sh | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mkshrc.d/90-prompt.sh b/mkshrc.d/90-prompt.sh @@ -1 +1 @@ -PS1='$(d=${PWD/$HOME/\~};print ${d##*/})$(((r=$?))&&print "?\e[0;31;40m$r\e[0m")$(((USER_ID))&&print \$||print \#) ' +PS1='$(d=${PWD/$HOME/\~};print ${d##*/})$(((r=$?))&&$([ -n "$SSH_CONNECTION" ] && print "@${HOSTNAME:=$(hostname)}"||true)&&print "?\e[0;31;40m$r\e[0m")$(((USER_ID))&&print \$||print \#) '