From d388912e10f9f3bac6f1d0b1a6589a62c0a1e3d6 Mon Sep 17 00:00:00 2001 From: Hyeon Kim Date: Tue, 7 Oct 2014 17:44:17 +0900 Subject: [PATCH] agnoster.zsh-theme: Support whitespace characters in username By doing "$(whoami)" instead of `whoami` --- themes/agnoster.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme index 2b33c48bc..cd59956de 100644 --- a/themes/agnoster.zsh-theme +++ b/themes/agnoster.zsh-theme @@ -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"