diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-06-24 16:21:33 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-06-24 16:21:33 +1200 |
commit | 3cc9a3d4d72c0335895f2bf9678eac2b24d425ec (patch) | |
tree | b7eebfe69c18366be4b881fac10766471f2b92e7 /sh/shrc.d/prompt.sh | |
parent | Add a caveat to trs(1df) (diff) | |
download | dotfiles-3cc9a3d4d72c0335895f2bf9678eac2b24d425ec.tar.gz dotfiles-3cc9a3d4d72c0335895f2bf9678eac2b24d425ec.zip |
Use short hostname in default prompt
Diffstat (limited to 'sh/shrc.d/prompt.sh')
-rw-r--r-- | sh/shrc.d/prompt.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sh/shrc.d/prompt.sh b/sh/shrc.d/prompt.sh index 6f1e8e1f..30e4e9d8 100644 --- a/sh/shrc.d/prompt.sh +++ b/sh/shrc.d/prompt.sh @@ -7,5 +7,5 @@ PS1='$ ' PS2='> ' PS3='? ' PS4='+ ' # If we have an SSH_CLIENT or SSH_CONNECTION environment variable, put the # hostname in PS1 too. if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_CONNECTION" ] ; then - PS1=$(hostname)'$ ' + PS1=$(hostname -s)'$ ' fi |