update PS2 to show reason for being delayed.

This commit is contained in:
Ivan Malison 2014-04-24 20:20:19 -07:00
parent c92b886cd2
commit a0ade716a2

View File

@ -61,7 +61,7 @@ function separator() {
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) 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='' PS2='(%_) '
RPROMPT='Last Exit Code: $?' RPROMPT='Last Exit Code: $?'
prompt_use_custom_colors prompt_use_custom_colors