mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-23 20:13:05 +03:00
Allow customizing prompt_char
This commit is contained in:
parent
9498ecec2c
commit
77bdd13b35
@ -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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user