aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-06-19 00:28:06 +1200
committerTom Ryder <tom@sanctum.geek.nz>2017-06-19 00:28:06 +1200
commite71182ce0b1076f52799534bfed023c75e03e412 (patch)
treec842de230dc46666fcb6d5b802f2825efc4f79cd /sh
parentf372b831ed58b0c1abf41e90ac2560508e849960 (diff)
downloaddotfiles-e71182ce0b1076f52799534bfed023c75e03e412.tar.gz
Remove user@ prefix from prompt
Diffstat (limited to 'sh')
-rw-r--r--sh/shrc.d/prompt.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/sh/shrc.d/prompt.sh b/sh/shrc.d/prompt.sh
index f1b67fb4..6f1e8e1f 100644
--- a/sh/shrc.d/prompt.sh
+++ b/sh/shrc.d/prompt.sh
@@ -5,7 +5,7 @@ unset PS1 PS2 PS3 PS4
PS1='$ ' PS2='> ' PS3='? ' PS4='+ '
# If we have an SSH_CLIENT or SSH_CONNECTION environment variable, put the
-# username and hostname in PS1 too.
+# hostname in PS1 too.
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_CONNECTION" ] ; then
- PS1=$(id -nu)'@'$(hostname)'$ '
+ PS1=$(hostname)'$ '
fi