diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-17 18:46:04 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-17 18:46:44 +1300 |
commit | 1faa14a4794ec2d54ff69a628f9b64e3d292d361 (patch) | |
tree | 8fdefa117f2b1f2d1f672a0b47d1c519fecc1638 /ksh/kshrc.d | |
parent | Add SHLVL handling for ksh (diff) | |
download | dotfiles-1faa14a4794ec2d54ff69a628f9b64e3d292d361.tar.gz dotfiles-1faa14a4794ec2d54ff69a628f9b64e3d292d361.zip |
Knock out $HOST from kshrc
Not needed really
Diffstat (limited to 'ksh/kshrc.d')
-rw-r--r-- | ksh/kshrc.d/prompt.ksh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ksh/kshrc.d/prompt.ksh b/ksh/kshrc.d/prompt.ksh index 8fbce020..397a1b91 100644 --- a/ksh/kshrc.d/prompt.ksh +++ b/ksh/kshrc.d/prompt.ksh @@ -15,7 +15,7 @@ prompt() { # Basic prompt shape depends on whether we're in SSH or not PS1= if [[ -n $SSH_CLIENT ]] || [[ -n $SSH_CONNECTION ]] ; then - PS1=$PS1'$USER@$HOST:' + PS1=$PS1'$USER@${HOSTNAME%%.*}:' fi # Add sub-commands; working directory with ~ abbreviation, VCS, |