mirror of
https://github.com/IlanCosman/tide.git
synced 2024-09-11 17:15:34 +03:00
Minor edits
This commit is contained in:
parent
88e763efbc
commit
2b0696b087
@ -36,14 +36,14 @@ function _tide_cache_variables
|
||||
# two line prompt
|
||||
if contains newline $_tide_left_items
|
||||
set_color $tide_prompt_color_frame_and_connection -b normal | read -gx _tide_prompt_and_frame_color
|
||||
set -g _tide_prompt_num_lines _tide_2_line_prompt
|
||||
set -g _tide_X_line_prompt _tide_2_line_prompt
|
||||
else
|
||||
set -e _tide_prompt_and_frame_color
|
||||
set -g _tide_prompt_num_lines _tide_1_line_prompt
|
||||
set -g _tide_X_line_prompt _tide_1_line_prompt
|
||||
end
|
||||
|
||||
# newline before
|
||||
test "$tide_prompt_add_newline_before" = true && set -g _tide_add_newline '\0' || set -e _tide_add_newline
|
||||
test "$tide_prompt_add_newline_before" = true && set -g _tide_add_newline '\0'
|
||||
|
||||
# item padding
|
||||
test "$tide_prompt_pad_items" = true && set -gx _tide_pad ' ' || set -e _tide_pad
|
||||
|
@ -21,8 +21,8 @@ function fish_prompt
|
||||
_tide_status=\$status _tide_pipestatus=\$pipestatus if not set -e _tide_repaint
|
||||
jobs --query
|
||||
fish --command \"set _tide_pipestatus \$_tide_pipestatus
|
||||
_tide_jobs_status=\$status CMD_DURATION=\$CMD_DURATION COLUMNS=\$COLUMNS \
|
||||
fish_bind_mode=\$fish_bind_mode set $_tide_prompt_var ($_tide_prompt_num_lines)\" &
|
||||
_tide_jobs_status=\$status CMD_DURATION=\$CMD_DURATION COLUMNS=\$COLUMNS \
|
||||
fish_bind_mode=\$fish_bind_mode set $_tide_prompt_var ($_tide_X_line_prompt)\" &
|
||||
builtin disown
|
||||
|
||||
command kill \$_tide_last_pid 2>/dev/null
|
||||
@ -40,4 +40,4 @@ function _tide_on_fish_exit --on-event fish_exit
|
||||
set -e $_tide_prompt_var
|
||||
end"
|
||||
|
||||
set -e _tide_prompt_var _tide_prompt_num_lines _tide_add_newline
|
||||
set -e _tide_prompt_var _tide_X_line_prompt _tide_add_newline
|
||||
|
Loading…
Reference in New Issue
Block a user