Update fisher & tide, add VS Code, i3, & sway configs

This commit is contained in:
askiiart 2023-11-20 01:07:05 -06:00
parent 9a43cae5fa
commit 80f43e8f7e
Signed by untrusted user who does not match committer: askiiart
GPG key ID: BC3800E55FB54D67
62 changed files with 453 additions and 616 deletions

View file

@ -1,6 +1,4 @@
function style
set -g _tide_configure_current_options
_tide_title 'Prompt Style'
_tide_option 1 Lean
@ -15,15 +13,15 @@ function style
_load_config rainbow
_tide_display_prompt
_tide_menu (status function) --no-restart
_tide_style_menu
switch $_tide_selected_option
case Lean
case 1
_load_config lean
set -g _tide_configure_style lean
case Classic
case 2
_load_config classic
set -g _tide_configure_style classic
case Rainbow
case 3
_load_config rainbow
set -g _tide_configure_style rainbow
end
@ -31,6 +29,29 @@ function style
end
function _load_config -a name
string replace -r '^' 'set -g fake_' <(status dirname)/../../icons.fish | source
string replace -r '^' 'set -g fake_' <(status dirname)/../../configs/$name.fish | source
end
function _tide_style_menu # Exactly like _tide_menu except that it doesn't have (r) option
set -l list_with_slashes (string join '/' $_tide_option_list)
echo '(q) Quit and do nothing'\n
while true
set_color -o
read --nchars 1 --prompt-str "Choice [$list_with_slashes/q] " input
set_color normal
switch $input
case q
set -e _tide_selected_option # Skip through all the _next_choices
set -e _tide_option_list
command -q clear && clear
break
case $_tide_option_list
set -e _tide_option_list
set -g _tide_selected_option $input
break
end
end
end