Skip to content

Commit

Permalink
Merge pull request #107 from mafredri/spacing-fix-2
Browse files Browse the repository at this point in the history
Fix ssh/root spacing issue.
  • Loading branch information
sindresorhus committed Mar 6, 2015
2 parents 981955a + f49c5bd commit ef13299
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pure.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ prompt_pure_setup() {
zstyle ':vcs_info:git*' actionformats ' %b|%a'

# show username@host if logged in through SSH
[[ "$SSH_CONNECTION" != '' ]] && prompt_pure_username=' %n@%m '
[[ "$SSH_CONNECTION" != '' ]] && prompt_pure_username=' %n@%m'

# show username@host if root, with username in white
[[ $UID -eq 0 ]] && prompt_pure_username=' %F{white}%n%F{242}@%m '
[[ $UID -eq 0 ]] && prompt_pure_username=' %F{white}%n%F{242}@%m'

# prompt turns red if the previous command didn't exit with 0
PROMPT="%(?.%F{magenta}.%F{red})${PURE_PROMPT_SYMBOL:-❯}%f "
Expand Down

0 comments on commit ef13299

Please sign in to comment.