agnoster.zsh-theme: Support whitespace characters in username

By doing "$(whoami)" instead of `whoami`
This commit is contained in:
Hyeon Kim 2014-10-07 17:44:17 +09:00
commit d388912e10

View file

@ -60,7 +60,7 @@ prompt_end() {
# Context: user@hostname (who am I and where am I)
prompt_context() {
local user=`whoami`
local user="$(whoami)"
if [[ "$user" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
prompt_segment black default "%(!.%{%F{yellow}%}.)$user@%m"