aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-06-24 16:21:33 +1200
committerTom Ryder <tom@sanctum.geek.nz>2017-06-24 16:21:33 +1200
commit3cc9a3d4d72c0335895f2bf9678eac2b24d425ec (patch)
treeb7eebfe69c18366be4b881fac10766471f2b92e7
parentAdd a caveat to trs(1df) (diff)
downloaddotfiles-3cc9a3d4d72c0335895f2bf9678eac2b24d425ec.tar.gz
dotfiles-3cc9a3d4d72c0335895f2bf9678eac2b24d425ec.zip
Use short hostname in default prompt
-rw-r--r--sh/shrc.d/prompt.sh2
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