add support for dumb prompt so that emacs-tramp can work.

This commit is contained in:
Ivan Malison 2014-11-13 22:57:55 -08:00
parent 21d65e3e06
commit 98fef909c3
2 changed files with 8 additions and 2 deletions

@ -1 +1 @@
Subproject commit 7be8a99428ee48633329d84582af0cb0343822f8 Subproject commit 3464b795ad4f2d827a17e4fde7666a9da5570c4a

View File

@ -130,7 +130,13 @@ export JOB_COUNT_COLOR="$fg[blue]"
prompt_tomorrow_colors prompt_tomorrow_colors
# For reasons which are currently beyond me, # For reasons which are currently beyond me,
PROMPT='⚡ % $(print_with_color "%n" "$USERNAME_COLOR") $(separator "at") $(print_with_color "`hostname -s`" "$HOSTNAME_COLOR") $(separator "in") $(print_with_color "`current_directory`" "$CURRENT_DIRECTORY_COLOR")$(git_prompt_info) export PROMPT='⚡ % $(print_with_color "%n" "$USERNAME_COLOR") $(separator "at") $(print_with_color "`hostname -s`" "$HOSTNAME_COLOR") $(separator "in") $(print_with_color "`current_directory`" "$CURRENT_DIRECTORY_COLOR")$(git_prompt_info)
$(colored_job_count)%(?.$(print_with_color "$(command_line_character) " $PROMPT_CHAR_SUCCESS).$(print_with_color "$(command_line_character) " $PROMPT_CHAR_ERROR)) ' $(colored_job_count)%(?.$(print_with_color "$(command_line_character) " $PROMPT_CHAR_SUCCESS).$(print_with_color "$(command_line_character) " $PROMPT_CHAR_ERROR)) '
PS2='(%_) ' PS2='(%_) '
case "$TERM" in
dumb)
export PROMPT='> '
;;
esac