aboutsummaryrefslogtreecommitdiff
path: root/sh
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 /sh
parente9d23be08cd4c755c9c0bdba1f585144f1338ef2 (diff)
downloaddotfiles-3cc9a3d4d72c0335895f2bf9678eac2b24d425ec.tar.gz
Use short hostname in default prompt
Diffstat (limited to 'sh')
-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