Fix wizard issues

This commit is contained in:
Ilan Cosman 2020-04-29 17:40:44 -07:00
parent efeadfbc90
commit 5387f5a3fe
3 changed files with 16 additions and 8 deletions

View File

@ -66,6 +66,8 @@ function lean_install
# ---------------Jobs--------------- # ---------------Jobs---------------
set -U lean_jobs_icon '' # Gear set -U lean_jobs_icon '' # Gear
set -U lean_jobs_color 5FAF00 set -U lean_jobs_color 5FAF00
# ---------------Time---------------
set -U lean_time_color 5F8787
# -----------------------Finish----------------------- # -----------------------Finish-----------------------
source "$__fish_config_dir/functions/fish_prompt.fish" source "$__fish_config_dir/functions/fish_prompt.fish"

View File

@ -1,10 +1,13 @@
printf '%.s ' (seq $columns) printf '%.s ' (seq $columns)
set -l cmd_durationOutput ' 5s ' set -l rightPrompt ' 5s '(date +$fake_lean_time_format)
set -l cmd_durationStartLocation (math $columns-(string length $cmd_durationOutput)) set -l rightPromptStartLocation (math $columns-(string length $rightPrompt))
printf '\r\033['$cmd_durationStartLocation'C' printf '\r\033['$rightPromptStartLocation'C'
set_color $lean_cmd_duration_color set_color $lean_cmd_duration_color
echo -n $cmd_durationOutput echo -n ' 5s '
set_color $fish_color_normal
set_color $lean_time_color
echo -n (date +$fake_lean_time_format)
set_color $fish_color_normal set_color $fish_color_normal
echo -ne '\r' echo -ne '\r'

View File

@ -2,11 +2,14 @@
printf "%.s$fake_lean_prompt_connection" (seq $columns) printf "%.s$fake_lean_prompt_connection" (seq $columns)
set_color $fish_color_normal set_color $fish_color_normal
set -l cmd_durationOutput ' 5s ' set -l rightPrompt ' 5s '(date +$fake_lean_time_format)
set -l cmd_durationStartLocation (math $columns-(string length $cmd_durationOutput)) set -l rightPromptStartLocation (math $columns-(string length $rightPrompt))
printf '\r\033['$cmd_durationStartLocation'C' printf '\r\033['$rightPromptStartLocation'C'
set_color $lean_cmd_duration_color set_color $lean_cmd_duration_color
echo -n $cmd_durationOutput echo -n ' 5s '
set_color $fish_color_normal
set_color $lean_time_color
echo -n (date +$fake_lean_time_format)
set_color $fish_color_normal set_color $fish_color_normal
echo -ne '\r' echo -ne '\r'