mirror of
https://github.com/IlanCosman/tide.git
synced 2025-01-03 18:14:01 +03:00
Minor edits
This commit is contained in:
parent
88e763efbc
commit
2b0696b087
@ -36,14 +36,14 @@ function _tide_cache_variables
|
|||||||
# two line prompt
|
# two line prompt
|
||||||
if contains newline $_tide_left_items
|
if contains newline $_tide_left_items
|
||||||
set_color $tide_prompt_color_frame_and_connection -b normal | read -gx _tide_prompt_and_frame_color
|
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
|
else
|
||||||
set -e _tide_prompt_and_frame_color
|
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
|
end
|
||||||
|
|
||||||
# newline before
|
# 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
|
# item padding
|
||||||
test "$tide_prompt_pad_items" = true && set -gx _tide_pad ' ' || set -e _tide_pad
|
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
|
_tide_status=\$status _tide_pipestatus=\$pipestatus if not set -e _tide_repaint
|
||||||
jobs --query
|
jobs --query
|
||||||
fish --command \"set _tide_pipestatus \$_tide_pipestatus
|
fish --command \"set _tide_pipestatus \$_tide_pipestatus
|
||||||
_tide_jobs_status=\$status CMD_DURATION=\$CMD_DURATION COLUMNS=\$COLUMNS \
|
_tide_jobs_status=\$status CMD_DURATION=\$CMD_DURATION COLUMNS=\$COLUMNS \
|
||||||
fish_bind_mode=\$fish_bind_mode set $_tide_prompt_var ($_tide_prompt_num_lines)\" &
|
fish_bind_mode=\$fish_bind_mode set $_tide_prompt_var ($_tide_X_line_prompt)\" &
|
||||||
builtin disown
|
builtin disown
|
||||||
|
|
||||||
command kill \$_tide_last_pid 2>/dev/null
|
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
|
set -e $_tide_prompt_var
|
||||||
end"
|
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