mirror of
https://github.com/IlanCosman/tide.git
synced 2024-10-26 18:51:05 +03:00
minor edits
This commit is contained in:
parent
ed7ae3a18a
commit
ddaaf619d1
@ -9,10 +9,16 @@ function _tide_cache_variables
|
||||
set -gx _tide_location_color (set_color $tide_git_color_branch || echo)
|
||||
|
||||
# two line prompt
|
||||
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
|
||||
else
|
||||
set -e _tide_prompt_and_frame_color
|
||||
end
|
||||
|
||||
# newline before
|
||||
set -e _tide_add_newline
|
||||
test "$tide_prompt_add_newline_before" = true && set -g _tide_add_newline ''
|
||||
if test "$tide_prompt_add_newline_before" = true
|
||||
set -g _tide_add_newline ''
|
||||
else
|
||||
set -e _tide_add_newline
|
||||
end
|
||||
end
|
||||
|
@ -1,5 +1,5 @@
|
||||
function _tide_prompt
|
||||
left_prompt=(_tide_left_prompt) right_prompt=(_tide_right_prompt) if set -q left_prompt[2] # If prompt is two lines
|
||||
left_prompt=(_tide_left_prompt) right_prompt=(_tide_right_prompt) if set -q _tide_prompt_and_frame_color # If prompt is two lines
|
||||
if test "$tide_left_prompt_frame_enabled" = true
|
||||
set left_prompt[1] $_tide_prompt_and_frame_color╭─"$left_prompt[1]"
|
||||
set left_prompt[2] $_tide_prompt_and_frame_color╰─"$left_prompt[2]"
|
||||
@ -32,8 +32,6 @@ function _tide_left_prompt
|
||||
set_color $_tide_previous_bg_color -b normal
|
||||
echo -ns $tide_left_prompt_suffix
|
||||
end
|
||||
|
||||
set_color normal # Make sure there is something printed on the last line
|
||||
end
|
||||
|
||||
function _tide_right_prompt
|
||||
@ -47,8 +45,6 @@ function _tide_right_prompt
|
||||
set_color $_tide_previous_bg_color -b normal
|
||||
echo -ns $tide_right_prompt_suffix
|
||||
end
|
||||
|
||||
set_color normal # Make sure there is something printed on the last line
|
||||
end
|
||||
|
||||
function _tide_item_pwd
|
||||
|
Loading…
Reference in New Issue
Block a user