diff --git a/functions/lean_load_right_prompt_modules.fish b/functions/lean_load_right_prompt_items.fish similarity index 100% rename from functions/lean_load_right_prompt_modules.fish rename to functions/lean_load_right_prompt_items.fish diff --git a/functions/lean_wizard.fish b/functions/lean_wizard.fish index 5e767f1..6913c78 100644 --- a/functions/lean_wizard.fish +++ b/functions/lean_wizard.fish @@ -17,7 +17,6 @@ function lean_wizard end function _begin - clear _setDefaults _promptHeight end @@ -58,7 +57,6 @@ function _promptHeight end function _promptConnection - clear _title "Prompt Connection" _option 1 "Disconnected" @@ -90,7 +88,6 @@ function _promptConnection end function _promptConnectionColor - clear _title "Connection Color" _option 1 "Lightest" @@ -128,7 +125,6 @@ function _promptConnectionColor end function _promptSpacing - clear _title "Prompt Spacing" _option 1 "Compact" @@ -187,6 +183,7 @@ function _addMod -a file end function _title -a title + clear set -l midCols (math $columns/2) set -l midTitle (math (string length $title)/2) @@ -226,7 +223,6 @@ function _quit end function _finish - clear _title "Overwrite fish_prompt?" _option y "Yes" diff --git a/lean_theme/prompt_modules/fake_prompt/3_1Line.fish b/lean_theme/prompt_modules/fake_prompt/3_1Line.fish index 50dde60..4287442 100644 --- a/lean_theme/prompt_modules/fake_prompt/3_1Line.fish +++ b/lean_theme/prompt_modules/fake_prompt/3_1Line.fish @@ -1 +1,19 @@ - echo -n (lean_pwd)(lean_git_prompt)" " \ No newline at end of file + printf "%.s " (seq $columns) + + set -l timerOutput " 5s " + set -l timerStartLocation (math $columns-(string length $timerOutput)) + printf "\r\033["$timerStartLocation"C" + set_color $lean_timer_color + echo -n $timerOutput + set_color $fish_color_normal + + echo -ne "\r" + + set -l Lblue (set_color -o $lean_color_light_blue) + set -l Dblue (set_color $lean_color_dark_blue) + set -l n (set_color $fish_color_normal) + echo -n $Lblue"~"$n$Dblue"/"$n$Lblue"src "$n + + set_color $lean_color_green + echo -n "master " + set_color $fish_color_normal \ No newline at end of file diff --git a/lean_theme/prompt_modules/fake_prompt/3_2Line.fish b/lean_theme/prompt_modules/fake_prompt/3_2Line.fish index 8bd8455..36c362d 100644 --- a/lean_theme/prompt_modules/fake_prompt/3_2Line.fish +++ b/lean_theme/prompt_modules/fake_prompt/3_2Line.fish @@ -1,9 +1,9 @@ set_color $fake_lean_prompt_connection_color - printf "%.s$fake_lean_prompt_connection" (seq (math $COLUMNS-1)) + printf "%.s$fake_lean_prompt_connection" (seq $columns) set_color $fish_color_normal set -l timerOutput " 5s " - set -l timerStartLocation (math $COLUMNS-(string length $timerOutput)) + set -l timerStartLocation (math $columns-(string length $timerOutput)) printf "\r\033["$timerStartLocation"C" set_color $lean_timer_color echo -n $timerOutput