Allow customizing prompt_char

This commit is contained in:
Ilan Cosman 2020-05-19 11:01:01 -07:00
parent 9498ecec2c
commit 77bdd13b35
2 changed files with 7 additions and 3 deletions

View File

@ -1,8 +1,8 @@
function _tide_prompt_char
if test $last_status -eq 0
set_color $tide_color_green
set_color $tide_prompt_char_success_color
else
set_color $fish_color_error
set_color $tide_prompt_char_failure_color
end
printf '%s ' ''
printf '%s ' "$tide_prompt_char_icon"
end

View File

@ -58,6 +58,10 @@ function _set_tide_defaults
# --------------------Prompt Items--------------------
set -U tide_left_prompt_items 'pwd' 'git_prompt' 'newline' 'prompt_char'
set -U tide_right_prompt_items 'status' 'cmd_duration' 'context' 'jobs'
# ----------------Prompt Char----------------
set -U tide_prompt_char_success_color $tide_color_green
set -U tide_prompt_char_failure_color FF0000
set -U tide_prompt_char_icon ''
# ----------------Pwd----------------
set -U tide_pwd_shorten_margin 5
set -U tide_pwd_unwritable_icon '' # Lock