Close GH-11: Remote user. Fixes #9

This commit is contained in:
hemanth.hm
2013-09-03 20:37:31 +02:00
committed by Sindre Sorhus
parent 74d0db4ff1
commit 65ed8c4465

View File

@@ -32,8 +32,11 @@
# enable prompt substitution # enable prompt substitution
setopt PROMPT_SUBST setopt PROMPT_SUBST
# only show username if not default # only show username if not default.
[ $USER != "$PURE_DEFAULT_USERNAME" ] && local username='%n@%m ' # 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 # fastest possible way to check if repo is dirty
pure_git_dirty() { pure_git_dirty() {