mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-23 03:52:12 +03:00
Add private mode item (closes #157)
This commit is contained in:
parent
0376903ca6
commit
b3ef596229
@ -8,6 +8,13 @@ function _tide_cache_variables
|
|||||||
contains git $tide_left_prompt_items $tide_right_prompt_items &&
|
contains git $tide_left_prompt_items $tide_right_prompt_items &&
|
||||||
set -gx _tide_location_color "$(set_color $tide_git_color_branch)"
|
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
|
# two line prompt
|
||||||
if contains newline $tide_left_prompt_items
|
if contains newline $tide_left_prompt_items
|
||||||
set_color $tide_prompt_color_frame_and_connection -b normal | read -gx _tide_prompt_and_frame_color
|
set_color $tide_prompt_color_frame_and_connection -b normal | read -gx _tide_prompt_and_frame_color
|
||||||
|
3
functions/_tide_item_private_mode.fish
Normal file
3
functions/_tide_item_private_mode.fish
Normal 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
|
@ -52,6 +52,9 @@ tide_os_color EEEEEE
|
|||||||
tide_php_bg_color 444444
|
tide_php_bg_color 444444
|
||||||
tide_php_color 617CBE
|
tide_php_color 617CBE
|
||||||
tide_php_icon ''
|
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_add_newline_before true
|
||||||
tide_prompt_color_frame_and_connection 6C6C6C
|
tide_prompt_color_frame_and_connection 6C6C6C
|
||||||
tide_prompt_color_separator_same_color 949494
|
tide_prompt_color_separator_same_color 949494
|
||||||
|
@ -31,6 +31,8 @@ tide_os_bg_color black
|
|||||||
tide_os_color brwhite
|
tide_os_color brwhite
|
||||||
tide_php_bg_color black
|
tide_php_bg_color black
|
||||||
tide_php_color blue
|
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_frame_and_connection brblack
|
||||||
tide_prompt_color_separator_same_color brblack
|
tide_prompt_color_separator_same_color brblack
|
||||||
tide_pwd_bg_color black
|
tide_pwd_bg_color black
|
||||||
|
@ -52,6 +52,9 @@ tide_os_color normal
|
|||||||
tide_php_bg_color normal
|
tide_php_bg_color normal
|
||||||
tide_php_color 617CBE
|
tide_php_color 617CBE
|
||||||
tide_php_icon ''
|
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_add_newline_before true
|
||||||
tide_prompt_color_frame_and_connection 6C6C6C
|
tide_prompt_color_frame_and_connection 6C6C6C
|
||||||
tide_prompt_color_separator_same_color 949494
|
tide_prompt_color_separator_same_color 949494
|
||||||
|
@ -31,6 +31,8 @@ tide_os_bg_color normal
|
|||||||
tide_os_color brwhite
|
tide_os_color brwhite
|
||||||
tide_php_bg_color normal
|
tide_php_bg_color normal
|
||||||
tide_php_color blue
|
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_frame_and_connection brblack
|
||||||
tide_prompt_color_separator_same_color brblack
|
tide_prompt_color_separator_same_color brblack
|
||||||
tide_pwd_bg_color normal
|
tide_pwd_bg_color normal
|
||||||
|
@ -52,6 +52,9 @@ tide_os_color 080808
|
|||||||
tide_php_bg_color 617CBE
|
tide_php_bg_color 617CBE
|
||||||
tide_php_color 000000
|
tide_php_color 000000
|
||||||
tide_php_icon ''
|
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_add_newline_before true
|
||||||
tide_prompt_color_frame_and_connection 6C6C6C
|
tide_prompt_color_frame_and_connection 6C6C6C
|
||||||
tide_prompt_color_separator_same_color 949494
|
tide_prompt_color_separator_same_color 949494
|
||||||
|
@ -31,6 +31,8 @@ tide_os_bg_color white
|
|||||||
tide_os_color black
|
tide_os_color black
|
||||||
tide_php_bg_color blue
|
tide_php_bg_color blue
|
||||||
tide_php_color black
|
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_frame_and_connection brblack
|
||||||
tide_prompt_color_separator_same_color brblack
|
tide_prompt_color_separator_same_color brblack
|
||||||
tide_pwd_bg_color blue
|
tide_pwd_bg_color blue
|
||||||
|
Loading…
Reference in New Issue
Block a user