Close GH-11: Remote user. Fixes #9
This commit is contained in:
committed by
Sindre Sorhus
parent
74d0db4ff1
commit
65ed8c4465
7
pure.zsh
7
pure.zsh
@@ -32,8 +32,11 @@
|
||||
# enable prompt substitution
|
||||
setopt PROMPT_SUBST
|
||||
|
||||
# only show username if not default
|
||||
[ $USER != "$PURE_DEFAULT_USERNAME" ] && local username='%n@%m '
|
||||
# only show username if not default.
|
||||
# if SSH_CLIENT or SSH_TTY is defined, it's an ssh session.
|
||||
if [[ "$SSH_CLIENT" ]] || [[ "$SSH_TTY" ]]; then
|
||||
local username='%n@%m '
|
||||
fi
|
||||
|
||||
# fastest possible way to check if repo is dirty
|
||||
pure_git_dirty() {
|
||||
|
||||
Reference in New Issue
Block a user