Add private mode item (closes #157)

This commit is contained in:
Ilan Cosman 2021-10-03 12:05:43 -07:00
parent 0376903ca6
commit b3ef596229
8 changed files with 25 additions and 0 deletions

View File

@ -8,6 +8,13 @@ function _tide_cache_variables
contains git $tide_left_prompt_items $tide_right_prompt_items &&
set -gx _tide_location_color "$(set_color $tide_git_color_branch)"
# private_mode
if contains private_mode $tide_left_prompt_items $tide_right_prompt_items && test -n "$fish_private_mode"
set -gx _tide_private_mode
else
set -e _tide_private_mode
end
# two line prompt
if contains newline $tide_left_prompt_items
set_color $tide_prompt_color_frame_and_connection -b normal | read -gx _tide_prompt_and_frame_color

View File

@ -0,0 +1,3 @@
function _tide_item_private_mode
set -q _tide_private_mode && _tide_print_item private_mode $tide_private_mode_icon
end

View File

@ -52,6 +52,9 @@ tide_os_color EEEEEE
tide_php_bg_color 444444
tide_php_color 617CBE
tide_php_icon ''
tide_private_mode_bg_color 444444
tide_private_mode_color FFFFFF
tide_private_mode_icon
tide_prompt_add_newline_before true
tide_prompt_color_frame_and_connection 6C6C6C
tide_prompt_color_separator_same_color 949494

View File

@ -31,6 +31,8 @@ tide_os_bg_color black
tide_os_color brwhite
tide_php_bg_color black
tide_php_color blue
tide_private_mode_bg_color black
tide_private_mode_color brwhite
tide_prompt_color_frame_and_connection brblack
tide_prompt_color_separator_same_color brblack
tide_pwd_bg_color black

View File

@ -52,6 +52,9 @@ tide_os_color normal
tide_php_bg_color normal
tide_php_color 617CBE
tide_php_icon ''
tide_private_mode_bg_color normal
tide_private_mode_color FFFFFF
tide_private_mode_icon
tide_prompt_add_newline_before true
tide_prompt_color_frame_and_connection 6C6C6C
tide_prompt_color_separator_same_color 949494

View File

@ -31,6 +31,8 @@ tide_os_bg_color normal
tide_os_color brwhite
tide_php_bg_color normal
tide_php_color blue
tide_private_mode_bg_color normal
tide_private_mode_color brwhite
tide_prompt_color_frame_and_connection brblack
tide_prompt_color_separator_same_color brblack
tide_pwd_bg_color normal

View File

@ -52,6 +52,9 @@ tide_os_color 080808
tide_php_bg_color 617CBE
tide_php_color 000000
tide_php_icon ''
tide_private_mode_bg_color F1F3F4
tide_private_mode_color 000000
tide_private_mode_icon
tide_prompt_add_newline_before true
tide_prompt_color_frame_and_connection 6C6C6C
tide_prompt_color_separator_same_color 949494

View File

@ -31,6 +31,8 @@ tide_os_bg_color white
tide_os_color black
tide_php_bg_color blue
tide_php_color black
tide_private_mode_bg_color brwhite
tide_private_mode_color black
tide_prompt_color_frame_and_connection brblack
tide_prompt_color_separator_same_color brblack
tide_pwd_bg_color blue