Minor edits

This commit is contained in:
Ilan Cosman 2020-06-16 12:07:35 -07:00
parent fc5f5c5fb0
commit c65b267af1
4 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
function _tide_count_left_prompt_height --on-variable tide_left_prompt_items
function _tide_count_left_prompt_height -v tide_left_prompt_items
set -l numberOfNewlines (count (string match -a 'newline' $tide_left_prompt_items))
set -g _tide_left_prompt_height (math 1+$numberOfNewlines)
end

View File

@ -1,5 +1,5 @@
function _tide_pwd_set_max_length -v tide_pwd_truncate_margin -s WINCH
set -g _tide_pwd_max_length (math $COLUMNS-$tide_pwd_truncate_margin)
set -g _tide_pwd_max_length (math $COLUMNS -$tide_pwd_truncate_margin)
_tide_pwd
end

View File

@ -28,7 +28,7 @@ _set fake_tide_prompt_char_failure_color red
_set fake_tide_prompt_char_icon ''
# ----------------Pwd----------------
_set fake_tide_pwd_truncate_margin 10
_set fake_tide_pwd_unwritable_icon '' # Lock
_set fake_tide_pwd_unwritable_icon
_set fake_tide_pwd_max_dirs 0
_set fake_tide_pwd_anchors
_set fake_tide_pwd_color_anchors $_tide_color_light_blue

View File

@ -92,8 +92,8 @@ function _display_restart_and_quit
end
function _quit --on-signal INT
clear
source "$__fish_config_dir/functions/fish_prompt.fish"
source "$__fish_config_dir/functions/_tide_left_prompt.fish"
source "$__fish_config_dir/functions/_tide_right_prompt.fish"
clear
end