Switch to powerline prompt.

This commit is contained in:
2014-11-20 17:41:17 -08:00
parent b442af27e3
commit b22b1828f9
6 changed files with 82 additions and 5 deletions

View File

@@ -132,7 +132,14 @@ prompt_tomorrow_colors
# For reasons which are currently beyond me, it is not possible to use
# $? in PROMPT which is why the second line is so strangely
# constructed.
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)
function set_my_prompt {
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)) '
export PS2='(%_) '
}
PS2='(%_) '
function set_powerline_prompt {
source "$(python_module_path powerline)/bindings/zsh/powerline.zsh"
}
set_powerline_prompt