mirror of
https://github.com/IlanCosman/tide.git
synced 2024-11-15 01:00:35 +03:00
Minor edits
This commit is contained in:
parent
fc5f5c5fb0
commit
c65b267af1
@ -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
|
@ -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
|
@ -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
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user