mirror of
https://github.com/IlanCosman/tide.git
synced 2024-09-11 09:05:37 +03:00
Tiny startup improvements
This commit is contained in:
parent
d3079fcc56
commit
812fb9b6d6
@ -28,7 +28,7 @@ if contains newline $_tide_left_items # two line prompt initialization
|
|||||||
test "$tide_left_prompt_frame_enabled" = true &&
|
test "$tide_left_prompt_frame_enabled" = true &&
|
||||||
set -l top_left_frame "$prompt_and_frame_color╭─" &&
|
set -l top_left_frame "$prompt_and_frame_color╭─" &&
|
||||||
set -l bot_left_frame "$prompt_and_frame_color╰─" &&
|
set -l bot_left_frame "$prompt_and_frame_color╰─" &&
|
||||||
set column_offset (math $column_offset-2)
|
set column_offset 3
|
||||||
test "$tide_right_prompt_frame_enabled" = true &&
|
test "$tide_right_prompt_frame_enabled" = true &&
|
||||||
set -l top_right_frame "$prompt_and_frame_color─╮" &&
|
set -l top_right_frame "$prompt_and_frame_color─╮" &&
|
||||||
set -l bot_right_frame "$prompt_and_frame_color─╯" &&
|
set -l bot_right_frame "$prompt_and_frame_color─╯" &&
|
||||||
@ -145,9 +145,10 @@ end"
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
eval "function _tide_on_fish_exit --on-event fish_exit
|
# Inheriting instead of evaling because here load time is more important than runtime
|
||||||
|
function _tide_on_fish_exit --on-event fish_exit --inherit-variable prompt_var
|
||||||
set -e $prompt_var
|
set -e $prompt_var
|
||||||
end"
|
end
|
||||||
|
|
||||||
if test "$tide_prompt_transient_enabled" = true
|
if test "$tide_prompt_transient_enabled" = true
|
||||||
function _tide_enter_transient
|
function _tide_enter_transient
|
||||||
|
Loading…
Reference in New Issue
Block a user