From f17970b02c1ccd162ef1e12141c8b49320d86773 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Thu, 24 Apr 2014 23:12:54 -0700 Subject: [PATCH] Prompt colors set before prompt variable defined. --- dotfiles/lib/zsh/prompt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotfiles/lib/zsh/prompt.sh b/dotfiles/lib/zsh/prompt.sh index 407709d9..868ad8b5 100644 --- a/dotfiles/lib/zsh/prompt.sh +++ b/dotfiles/lib/zsh/prompt.sh @@ -58,10 +58,10 @@ function separator() { print_with_color "$1" "$SEPARATOR_COLOR" } +prompt_use_custom_colors PROMPT='╭─% $(print_with_color "%n" "$USERNAME_COLOR") $(separator "at") $(print_with_color "`hostname -s`" "$HOSTNAME_COLOR") $(separator "in") $(print_with_color "`current_directory`" "$terminfo[bold]$CURRENT_DIRECTORY_COLOR")$(git_prompt_info)$(sandbox_prompt) ╰─± ' PS2='(%_) ' RPROMPT='Last Exit Code: $?' -prompt_use_custom_colors