mirror of
https://github.com/IlanCosman/tide.git
synced 2024-09-11 09:05:37 +03:00
Clean up, disable by default
This commit is contained in:
parent
312d023d8b
commit
6259b8ccc3
@ -1,7 +1,7 @@
|
|||||||
function _tide_item_jobs
|
function _tide_item_jobs
|
||||||
if test $_tide_jobs -gt $tide_jobs_threshold
|
set -q _tide_jobs && if test $_tide_jobs -ge $tide_jobs_number_threshold
|
||||||
_tide_print_item jobs $tide_jobs_icon' ' $_tide_jobs
|
_tide_print_item jobs $tide_jobs_icon' ' $_tide_jobs
|
||||||
else if test $_tide_jobs -gt 0
|
else
|
||||||
_tide_print_item jobs $tide_jobs_icon
|
_tide_print_item jobs $tide_jobs_icon
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -38,7 +38,7 @@ if contains newline $_tide_left_items # two line prompt initialization
|
|||||||
eval "
|
eval "
|
||||||
function fish_prompt
|
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
|
||||||
set -lx _tide_jobs (count (jobs))
|
jobs -q && jobs -p | count | read -lx _tide_jobs
|
||||||
$fish_path -c \"set _tide_pipestatus \$_tide_pipestatus
|
$fish_path -c \"set _tide_pipestatus \$_tide_pipestatus
|
||||||
set _tide_parent_dirs \$_tide_parent_dirs
|
set _tide_parent_dirs \$_tide_parent_dirs
|
||||||
PATH=\$(string escape \"\$PATH\") CMD_DURATION=\$CMD_DURATION fish_bind_mode=\$fish_bind_mode set $prompt_var (_tide_2_line_prompt)\" &
|
PATH=\$(string escape \"\$PATH\") CMD_DURATION=\$CMD_DURATION fish_bind_mode=\$fish_bind_mode set $prompt_var (_tide_2_line_prompt)\" &
|
||||||
@ -66,7 +66,7 @@ end"
|
|||||||
eval "
|
eval "
|
||||||
function fish_prompt
|
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
|
||||||
set -lx _tide_jobs (count (jobs))
|
jobs -q && jobs -p | count | read -lx _tide_jobs
|
||||||
$fish_path -c \"set _tide_pipestatus \$_tide_pipestatus
|
$fish_path -c \"set _tide_pipestatus \$_tide_pipestatus
|
||||||
set _tide_parent_dirs \$_tide_parent_dirs
|
set _tide_parent_dirs \$_tide_parent_dirs
|
||||||
PATH=\$(string escape \"\$PATH\") CMD_DURATION=\$CMD_DURATION fish_bind_mode=\$fish_bind_mode set $prompt_var (_tide_2_line_prompt)\" &
|
PATH=\$(string escape \"\$PATH\") CMD_DURATION=\$CMD_DURATION fish_bind_mode=\$fish_bind_mode set $prompt_var (_tide_2_line_prompt)\" &
|
||||||
@ -98,7 +98,7 @@ else # one line prompt initialization
|
|||||||
function fish_prompt
|
function fish_prompt
|
||||||
set -lx _tide_status \$status
|
set -lx _tide_status \$status
|
||||||
_tide_pipestatus=\$pipestatus if not set -e _tide_repaint
|
_tide_pipestatus=\$pipestatus if not set -e _tide_repaint
|
||||||
set -lx _tide_jobs (count (jobs))
|
jobs -q && jobs -p | count | read -lx _tide_jobs
|
||||||
$fish_path -c \"set _tide_pipestatus \$_tide_pipestatus
|
$fish_path -c \"set _tide_pipestatus \$_tide_pipestatus
|
||||||
set _tide_parent_dirs \$_tide_parent_dirs
|
set _tide_parent_dirs \$_tide_parent_dirs
|
||||||
PATH=\$(string escape \"\$PATH\") CMD_DURATION=\$CMD_DURATION fish_bind_mode=\$fish_bind_mode set $prompt_var (_tide_1_line_prompt)\" &
|
PATH=\$(string escape \"\$PATH\") CMD_DURATION=\$CMD_DURATION fish_bind_mode=\$fish_bind_mode set $prompt_var (_tide_1_line_prompt)\" &
|
||||||
@ -125,7 +125,7 @@ end"
|
|||||||
eval "
|
eval "
|
||||||
function fish_prompt
|
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
|
||||||
set -lx _tide_jobs (count (jobs))
|
jobs -q && jobs -p | count | read -lx _tide_jobs
|
||||||
$fish_path -c \"set _tide_pipestatus \$_tide_pipestatus
|
$fish_path -c \"set _tide_pipestatus \$_tide_pipestatus
|
||||||
set _tide_parent_dirs \$_tide_parent_dirs
|
set _tide_parent_dirs \$_tide_parent_dirs
|
||||||
PATH=\$(string escape \"\$PATH\") CMD_DURATION=\$CMD_DURATION fish_bind_mode=\$fish_bind_mode set $prompt_var (_tide_1_line_prompt)\" &
|
PATH=\$(string escape \"\$PATH\") CMD_DURATION=\$CMD_DURATION fish_bind_mode=\$fish_bind_mode set $prompt_var (_tide_1_line_prompt)\" &
|
||||||
|
@ -46,7 +46,7 @@ tide_java_bg_color 444444
|
|||||||
tide_java_color ED8B00
|
tide_java_color ED8B00
|
||||||
tide_jobs_bg_color 444444
|
tide_jobs_bg_color 444444
|
||||||
tide_jobs_color $_tide_color_dark_green
|
tide_jobs_color $_tide_color_dark_green
|
||||||
tide_jobs_threshold 1
|
tide_jobs_number_threshold 1000
|
||||||
tide_kubectl_bg_color 444444
|
tide_kubectl_bg_color 444444
|
||||||
tide_kubectl_color 326CE5
|
tide_kubectl_color 326CE5
|
||||||
tide_left_prompt_frame_enabled true
|
tide_left_prompt_frame_enabled true
|
||||||
|
@ -46,7 +46,7 @@ tide_java_bg_color normal
|
|||||||
tide_java_color ED8B00
|
tide_java_color ED8B00
|
||||||
tide_jobs_bg_color normal
|
tide_jobs_bg_color normal
|
||||||
tide_jobs_color $_tide_color_dark_green
|
tide_jobs_color $_tide_color_dark_green
|
||||||
tide_jobs_threshold 1
|
tide_jobs_number_threshold 1000
|
||||||
tide_kubectl_bg_color normal
|
tide_kubectl_bg_color normal
|
||||||
tide_kubectl_color 326CE5
|
tide_kubectl_color 326CE5
|
||||||
tide_left_prompt_frame_enabled false
|
tide_left_prompt_frame_enabled false
|
||||||
|
@ -46,7 +46,7 @@ tide_java_bg_color ED8B00
|
|||||||
tide_java_color 000000
|
tide_java_color 000000
|
||||||
tide_jobs_bg_color 444444
|
tide_jobs_bg_color 444444
|
||||||
tide_jobs_color 4E9A06
|
tide_jobs_color 4E9A06
|
||||||
tide_jobs_threshold 1
|
tide_jobs_number_threshold 1000
|
||||||
tide_kubectl_bg_color 326CE5
|
tide_kubectl_bg_color 326CE5
|
||||||
tide_kubectl_color 000000
|
tide_kubectl_color 000000
|
||||||
tide_left_prompt_frame_enabled true
|
tide_left_prompt_frame_enabled true
|
||||||
|
@ -5,7 +5,7 @@ set _tide_jobs 0
|
|||||||
_tide_decolor (_tide_item_jobs) # CHECK:
|
_tide_decolor (_tide_item_jobs) # CHECK:
|
||||||
|
|
||||||
set -lx tide_jobs_icon
|
set -lx tide_jobs_icon
|
||||||
set -lx tide_jobs_threshold 1
|
set -lx tide_jobs_number_threshold 1000
|
||||||
set _tide_jobs 1
|
set _tide_jobs 1
|
||||||
_tide_decolor (_tide_item_jobs) # CHECK:
|
_tide_decolor (_tide_item_jobs) # CHECK:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user