Skip to content

Commit

Permalink
Fix username color (sindresorhus#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
LitoMore authored and sindresorhus committed Jun 12, 2019
1 parent ccad02b commit 3c0c744
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pure.zsh
Expand Up @@ -545,8 +545,8 @@ prompt_pure_state_setup() {
# show username@host if logged in through SSH
[[ -n $ssh_connection ]] && username='%F{242}%n@%m%f'

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

typeset -gA prompt_pure_state
prompt_pure_state[version]="1.9.0"
Expand Down

0 comments on commit 3c0c744

Please sign in to comment.