mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-23 20:13:05 +03:00
Remove fish_right_prompt from 1Line fake_prompt
This commit is contained in:
parent
96e836100c
commit
275f06957a
@ -17,7 +17,6 @@ function lean_wizard
|
|||||||
end
|
end
|
||||||
|
|
||||||
function _begin
|
function _begin
|
||||||
clear
|
|
||||||
_setDefaults
|
_setDefaults
|
||||||
_promptHeight
|
_promptHeight
|
||||||
end
|
end
|
||||||
@ -58,7 +57,6 @@ function _promptHeight
|
|||||||
end
|
end
|
||||||
|
|
||||||
function _promptConnection
|
function _promptConnection
|
||||||
clear
|
|
||||||
_title "Prompt Connection"
|
_title "Prompt Connection"
|
||||||
|
|
||||||
_option 1 "Disconnected"
|
_option 1 "Disconnected"
|
||||||
@ -90,7 +88,6 @@ function _promptConnection
|
|||||||
end
|
end
|
||||||
|
|
||||||
function _promptConnectionColor
|
function _promptConnectionColor
|
||||||
clear
|
|
||||||
_title "Connection Color"
|
_title "Connection Color"
|
||||||
|
|
||||||
_option 1 "Lightest"
|
_option 1 "Lightest"
|
||||||
@ -128,7 +125,6 @@ function _promptConnectionColor
|
|||||||
end
|
end
|
||||||
|
|
||||||
function _promptSpacing
|
function _promptSpacing
|
||||||
clear
|
|
||||||
_title "Prompt Spacing"
|
_title "Prompt Spacing"
|
||||||
|
|
||||||
_option 1 "Compact"
|
_option 1 "Compact"
|
||||||
@ -187,6 +183,7 @@ function _addMod -a file
|
|||||||
end
|
end
|
||||||
|
|
||||||
function _title -a title
|
function _title -a title
|
||||||
|
clear
|
||||||
set -l midCols (math $columns/2)
|
set -l midCols (math $columns/2)
|
||||||
set -l midTitle (math (string length $title)/2)
|
set -l midTitle (math (string length $title)/2)
|
||||||
|
|
||||||
@ -226,7 +223,6 @@ function _quit
|
|||||||
end
|
end
|
||||||
|
|
||||||
function _finish
|
function _finish
|
||||||
clear
|
|
||||||
_title "Overwrite fish_prompt?"
|
_title "Overwrite fish_prompt?"
|
||||||
|
|
||||||
_option y "Yes"
|
_option y "Yes"
|
||||||
|
@ -1 +1,19 @@
|
|||||||
echo -n (lean_pwd)(lean_git_prompt)" "
|
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
|
@ -1,9 +1,9 @@
|
|||||||
set_color $fake_lean_prompt_connection_color
|
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_color $fish_color_normal
|
||||||
|
|
||||||
set -l timerOutput " 5s "
|
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"
|
printf "\r\033["$timerStartLocation"C"
|
||||||
set_color $lean_timer_color
|
set_color $lean_timer_color
|
||||||
echo -n $timerOutput
|
echo -n $timerOutput
|
||||||
|
Loading…
Reference in New Issue
Block a user