summaryrefslogtreecommitdiff
path: root/zsh/rc
diff options
context:
space:
mode:
Diffstat (limited to 'zsh/rc')
-rw-r--r--zsh/rc6
1 files changed, 5 insertions, 1 deletions
diff --git a/zsh/rc b/zsh/rc
index 7e71a48..c4f5f66 100644
--- a/zsh/rc
+++ b/zsh/rc
@@ -21,7 +21,11 @@ zstyle ':completion:*' users root ${USER}
HISTFILE=${XDG_CACHE_HOME}/zsh/history
HISTSIZE=65535
-PS1='%(?..%F{#ff0000}%?%f )%n@%m:%~ %# '
+if [[ -z ${SSH_CLIENT} ]]; then
+ PS1='%(?..%F{#ff0000}%?%f )%~ %# '
+else
+ PS1='%(?..%F{#ff0000}%?%f )%n@%m:%~ %# '
+fi
SAVEHIST=${HISTSIZE}
WORDCHARS=${WORDCHARS/\//}