tide (fish prompt) installed
This commit is contained in:
parent
142fd7eaa4
commit
e83440486a
85 changed files with 2589 additions and 62 deletions
31
.config/fish/functions/_tide_2_line_prompt.fish
Normal file
31
.config/fish/functions/_tide_2_line_prompt.fish
Normal file
|
@ -0,0 +1,31 @@
|
|||
function _tide_2_line_prompt
|
||||
set -g add_prefix
|
||||
_tide_side=left for item in $_tide_left_items
|
||||
_tide_item_$item
|
||||
end
|
||||
if not set -e add_prefix
|
||||
set_color $prev_bg_color -b normal
|
||||
echo $tide_left_prompt_suffix
|
||||
end
|
||||
|
||||
echo
|
||||
|
||||
set -g add_prefix
|
||||
_tide_side=right for item in $_tide_right_items
|
||||
_tide_item_$item
|
||||
end
|
||||
if not set -e add_prefix
|
||||
set_color $prev_bg_color -b normal
|
||||
echo $tide_right_prompt_suffix
|
||||
end
|
||||
end
|
||||
|
||||
function _tide_item_pwd
|
||||
_tide_print_item pwd @PWD@
|
||||
end
|
||||
|
||||
function _tide_item_newline
|
||||
set_color $prev_bg_color -b normal
|
||||
v=tide_"$_tide_side"_prompt_suffix echo $$v
|
||||
set -g add_prefix
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue