Prompt colors set before prompt variable defined.

This commit is contained in:
Ivan Malison 2014-04-24 23:12:54 -07:00
parent 7d95670717
commit f17970b02c

View File

@ -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