aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d
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 /bash/bashrc.d
parentf372b831ed58b0c1abf41e90ac2560508e849960 (diff)
downloaddotfiles-e71182ce0b1076f52799534bfed023c75e03e412.tar.gz
dotfiles-e71182ce0b1076f52799534bfed023c75e03e412.zip
Remove user@ prefix from prompt
Diffstat (limited to 'bash/bashrc.d')
-rw-r--r--bash/bashrc.d/prompt.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash
index 4dede32b..782af287 100644
--- a/bash/bashrc.d/prompt.bash
+++ b/bash/bashrc.d/prompt.bash
@@ -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'\u@\h:'
+ PS1=$PS1'\h:'
fi
PS1=$PS1'\w'
@@ -86,7 +86,7 @@ prompt() {
PS3='? '
PS4='+ '
if [[ -n $SSH_CLIENT || -n $SSH_CONNECTION ]] ; then
- PS1=$(id -nu)'@'$(hostname -s)'$ '
+ PS1=$(hostname -s)'$ '
fi
;;