diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-06-19 00:28:06 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-06-19 00:28:06 +1200 |
commit | e71182ce0b1076f52799534bfed023c75e03e412 (patch) | |
tree | c842de230dc46666fcb6d5b802f2825efc4f79cd /zsh/zshrc.d | |
parent | Update check/lint sh (diff) | |
download | dotfiles-e71182ce0b1076f52799534bfed023c75e03e412.tar.gz dotfiles-e71182ce0b1076f52799534bfed023c75e03e412.zip |
Remove user@ prefix from prompt
Diffstat (limited to 'zsh/zshrc.d')
-rw-r--r-- | zsh/zshrc.d/prompt.zsh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zsh/zshrc.d/prompt.zsh b/zsh/zshrc.d/prompt.zsh index 6ff82cec..7c695e25 100644 --- a/zsh/zshrc.d/prompt.zsh +++ b/zsh/zshrc.d/prompt.zsh @@ -11,7 +11,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'%n@%m:' + PS1=$PS1'%m:' fi PS1=$PS1'%~' @@ -49,7 +49,7 @@ prompt() { PS3='? ' PS4='+ ' if [[ -n $SSH_CLIENT || -n $SSH_CONNECTION ]] ; then - PS1=$(id -nu)'@'$(hostname -s)'$ ' + PS1=$(hostname -s)'$ ' fi ;; |