Switch to powerline prompt.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user