From eb6e2de3b80ae43606ba64e673f32dfe98cfada6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Mon, 20 Nov 2023 00:28:32 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(nvim):=20added=20bob,=20a=20ne?= =?UTF-8?q?ovim=20version=20manager?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/fish/completions/bob.fish | 33 +++++++++++++++++++++++++++++++ .config/fish/fish_variables | 4 ++-- .config/fish/functions/vimv.fish | 4 ++++ .config/fish/variables.fish | 5 +++-- .config/pacman/packages.txt | 1 + 5 files changed, 43 insertions(+), 4 deletions(-) create mode 100644 .config/fish/completions/bob.fish create mode 100644 .config/fish/functions/vimv.fish diff --git a/.config/fish/completions/bob.fish b/.config/fish/completions/bob.fish new file mode 100644 index 00000000..548cb37d --- /dev/null +++ b/.config/fish/completions/bob.fish @@ -0,0 +1,33 @@ +complete -c bob -n "__fish_use_subcommand" -s h -l help -d 'Print help' +complete -c bob -n "__fish_use_subcommand" -s V -l version -d 'Print version' +complete -c bob -n "__fish_use_subcommand" -f -a "use" -d 'Switch to the specified version, by default will auto-invoke install command if the version is not installed already' +complete -c bob -n "__fish_use_subcommand" -f -a "install" -d 'Install the specified version, can also be used to update out-of-date nightly version' +complete -c bob -n "__fish_use_subcommand" -f -a "sync" -d 'If Config::version_sync_file_location is set, the version in that file will be parsed and installed' +complete -c bob -n "__fish_use_subcommand" -f -a "uninstall" -d 'Uninstall the specified version' +complete -c bob -n "__fish_use_subcommand" -f -a "rollback" -d 'Rollback to an existing nightly rollback' +complete -c bob -n "__fish_use_subcommand" -f -a "erase" -d 'Erase any change bob ever made, including neovim installation, neovim version downloads and registry changes' +complete -c bob -n "__fish_use_subcommand" -f -a "list" -d 'List all installed and used versions' +complete -c bob -n "__fish_use_subcommand" -f -a "complete" -d 'Generate shell completion' +complete -c bob -n "__fish_use_subcommand" -f -a "update" -d 'Update existing version' +complete -c bob -n "__fish_use_subcommand" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' +complete -c bob -n "__fish_seen_subcommand_from use" -s n -l no-install -d 'Whether not to auto-invoke install command' +complete -c bob -n "__fish_seen_subcommand_from use" -s h -l help -d 'Print help' +complete -c bob -n "__fish_seen_subcommand_from install" -s h -l help -d 'Print help' +complete -c bob -n "__fish_seen_subcommand_from sync" -s h -l help -d 'Print help' +complete -c bob -n "__fish_seen_subcommand_from uninstall" -s h -l help -d 'Print help' +complete -c bob -n "__fish_seen_subcommand_from rollback" -s h -l help -d 'Print help' +complete -c bob -n "__fish_seen_subcommand_from erase" -s h -l help -d 'Print help' +complete -c bob -n "__fish_seen_subcommand_from list" -s h -l help -d 'Print help' +complete -c bob -n "__fish_seen_subcommand_from complete" -s h -l help -d 'Print help' +complete -c bob -n "__fish_seen_subcommand_from update" -s a -l all -d 'Apply the update to all versions' +complete -c bob -n "__fish_seen_subcommand_from update" -s h -l help -d 'Print help' +complete -c bob -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from use; and not __fish_seen_subcommand_from install; and not __fish_seen_subcommand_from sync; and not __fish_seen_subcommand_from uninstall; and not __fish_seen_subcommand_from rollback; and not __fish_seen_subcommand_from erase; and not __fish_seen_subcommand_from list; and not __fish_seen_subcommand_from complete; and not __fish_seen_subcommand_from update; and not __fish_seen_subcommand_from help" -f -a "use" -d 'Switch to the specified version, by default will auto-invoke install command if the version is not installed already' +complete -c bob -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from use; and not __fish_seen_subcommand_from install; and not __fish_seen_subcommand_from sync; and not __fish_seen_subcommand_from uninstall; and not __fish_seen_subcommand_from rollback; and not __fish_seen_subcommand_from erase; and not __fish_seen_subcommand_from list; and not __fish_seen_subcommand_from complete; and not __fish_seen_subcommand_from update; and not __fish_seen_subcommand_from help" -f -a "install" -d 'Install the specified version, can also be used to update out-of-date nightly version' +complete -c bob -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from use; and not __fish_seen_subcommand_from install; and not __fish_seen_subcommand_from sync; and not __fish_seen_subcommand_from uninstall; and not __fish_seen_subcommand_from rollback; and not __fish_seen_subcommand_from erase; and not __fish_seen_subcommand_from list; and not __fish_seen_subcommand_from complete; and not __fish_seen_subcommand_from update; and not __fish_seen_subcommand_from help" -f -a "sync" -d 'If Config::version_sync_file_location is set, the version in that file will be parsed and installed' +complete -c bob -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from use; and not __fish_seen_subcommand_from install; and not __fish_seen_subcommand_from sync; and not __fish_seen_subcommand_from uninstall; and not __fish_seen_subcommand_from rollback; and not __fish_seen_subcommand_from erase; and not __fish_seen_subcommand_from list; and not __fish_seen_subcommand_from complete; and not __fish_seen_subcommand_from update; and not __fish_seen_subcommand_from help" -f -a "uninstall" -d 'Uninstall the specified version' +complete -c bob -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from use; and not __fish_seen_subcommand_from install; and not __fish_seen_subcommand_from sync; and not __fish_seen_subcommand_from uninstall; and not __fish_seen_subcommand_from rollback; and not __fish_seen_subcommand_from erase; and not __fish_seen_subcommand_from list; and not __fish_seen_subcommand_from complete; and not __fish_seen_subcommand_from update; and not __fish_seen_subcommand_from help" -f -a "rollback" -d 'Rollback to an existing nightly rollback' +complete -c bob -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from use; and not __fish_seen_subcommand_from install; and not __fish_seen_subcommand_from sync; and not __fish_seen_subcommand_from uninstall; and not __fish_seen_subcommand_from rollback; and not __fish_seen_subcommand_from erase; and not __fish_seen_subcommand_from list; and not __fish_seen_subcommand_from complete; and not __fish_seen_subcommand_from update; and not __fish_seen_subcommand_from help" -f -a "erase" -d 'Erase any change bob ever made, including neovim installation, neovim version downloads and registry changes' +complete -c bob -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from use; and not __fish_seen_subcommand_from install; and not __fish_seen_subcommand_from sync; and not __fish_seen_subcommand_from uninstall; and not __fish_seen_subcommand_from rollback; and not __fish_seen_subcommand_from erase; and not __fish_seen_subcommand_from list; and not __fish_seen_subcommand_from complete; and not __fish_seen_subcommand_from update; and not __fish_seen_subcommand_from help" -f -a "list" -d 'List all installed and used versions' +complete -c bob -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from use; and not __fish_seen_subcommand_from install; and not __fish_seen_subcommand_from sync; and not __fish_seen_subcommand_from uninstall; and not __fish_seen_subcommand_from rollback; and not __fish_seen_subcommand_from erase; and not __fish_seen_subcommand_from list; and not __fish_seen_subcommand_from complete; and not __fish_seen_subcommand_from update; and not __fish_seen_subcommand_from help" -f -a "complete" -d 'Generate shell completion' +complete -c bob -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from use; and not __fish_seen_subcommand_from install; and not __fish_seen_subcommand_from sync; and not __fish_seen_subcommand_from uninstall; and not __fish_seen_subcommand_from rollback; and not __fish_seen_subcommand_from erase; and not __fish_seen_subcommand_from list; and not __fish_seen_subcommand_from complete; and not __fish_seen_subcommand_from update; and not __fish_seen_subcommand_from help" -f -a "update" -d 'Update existing version' +complete -c bob -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from use; and not __fish_seen_subcommand_from install; and not __fish_seen_subcommand_from sync; and not __fish_seen_subcommand_from uninstall; and not __fish_seen_subcommand_from rollback; and not __fish_seen_subcommand_from erase; and not __fish_seen_subcommand_from list; and not __fish_seen_subcommand_from complete; and not __fish_seen_subcommand_from update; and not __fish_seen_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' diff --git a/.config/fish/fish_variables b/.config/fish/fish_variables index cfc00803..9999a442 100644 --- a/.config/fish/fish_variables +++ b/.config/fish/fish_variables @@ -13,8 +13,8 @@ SETUVAR --export XDG_CACHE_HOME:/home/matt/\x2ecache SETUVAR --export XDG_CONFIG_HOME:/home/matt/\x2econfig SETUVAR --export XDG_DATA_HOME:/home/matt/\x2elocal/share SETUVAR --export XDG_SCRIPT_HOME:/home/matt/\x2elocal/script -SETUVAR --export __ABBR_TIPS_KEYS:a__bruh\x1ea__cat\x1ea__cd\x1ea__clock\x1ea__codeinfo\x1ea__disks\x1ea__dots\x1ea__dsize\x1ea__ea\x1ea__ef\x1ea__eg\x1ea__ev\x1ea__f\x1ea__fetch\x1ea__files\x1ea__fsend\x1ea__ga\x1ea__gbd\x1ea__gbl\x1ea__gcb\x1ea__gcf\x1ea__gclean\x1ea__gco\x1ea__gcp\x1ea__gct\x1ea__gd\x1ea__gfetch\x1ea__gfu\x1ea__gi\x1ea__glo\x1ea__gpt\x1ea__grb\x1ea__grc\x1ea__grh\x1ea__gsp\x1ea__gss\x1ea__h\x1ea__info\x1ea__install\x1ea__ip\x1ea__l\x1ea__ld\x1ea__ldh\x1ea__lh\x1ea__ls\x1ea__lsh\x1ea__lt\x1ea__lth\x1ea__matrix\x1ea__q\x1ea__svn\x1ea__uninstall\x1ea__update\x1ea__vim\x1ea__yP\x1ea__yarn\x1ea__yc\x1ea__ym\x1ea__yp\x1ea__yst\x1ea__ysw\x1ea__z\x1ea__zi\x1ea__tup\x1ea__\x1ea__pse\x1ea__fe\x1ea__ni\x1ea__nis\x1ea__nid\x1ea__nu\x1ea__nup\x1ea__nls -SETUVAR --export __ABBR_TIPS_VALUES:genact\x20\x2ds\x204\x1ebat\x1ez\x1etty\x2dclock\x20\x2dsbc\x1escc\x20\x2e/\x1eduf\x1eyadm\x20enter\x20lazygit\x1edua\x20i\x1envim\x20\x7e/\x2econfig/fish/aliases\x2efish\x1envim\x20\x7e/\x2econfig/fish/config\x2efish\x1envim\x20\x7e/\x2egitconfig\x1envim\x20\x7e/\x2econfig/fish/variables\x2efish\x1efzf\x1eneofetch\x1explr\x1efloaterm\x1eforgit\x3a\x3aadd\x1eforgit\x3a\x3abranch\x3a\x3adelete\x1eforgit\x3a\x3ablame\x1eforgit\x3a\x3acheckout\x3a\x3abranch\x1eforgit\x3a\x3acheckout\x3a\x3afile\x1eforgit\x3a\x3aclean\x1eforgit\x3a\x3acheckout\x3a\x3acommit\x1eforgit\x3a\x3acherry\x3a\x3apick\x3a\x3afrom\x3a\x3abranch\x1eforgit\x3a\x3acheckout\x3a\x3atag\x1eforgit\x3a\x3adiff\x1eonefetch\x1eforgit\x3a\x3afixup\x1eforgit\x3a\x3aignore\x1eforgit\x3a\x3alog\x1etgpt\x20\x2di\x1eforgit\x3a\x3arebase\x1eforgit\x3a\x3arevert\x3a\x3acommit\x1eforgit\x3a\x3areset\x3a\x3ahead\x1eforgit\x3a\x3astash\x3a\x3apush\x1eforgit\x3a\x3astash\x3a\x3ashow\x1ezi\x1etldr\x1eyay\x20\x2dS\x20\x1eip\x20\x2dc\x20a\x1eeza\x20\x2d\x2dlong\x20\x2d\x2dheader\x20\x2da\x20\x2d\x2dicons\x20\x2d\x2dgit\x20\x2d\x2dgroup\x2ddirectories\x2dfirst\x1eeza\x20\x2d\x2dlong\x20\x2d\x2dheader\x20\x2da\x20\x2d\x2dicons\x20\x2dD\x20\x2d\x2dgit\x1eeza\x20\x2d\x2dlong\x20\x2d\x2dheader\x20\x2d\x2dicons\x20\x2dD\x20\x2d\x2dgit\x1eeza\x20\x2d\x2dlong\x20\x2d\x2dheader\x20\x2d\x2dicons\x20\x2d\x2dgit\x20\x2d\x2dgroup\x2ddirectories\x2dfirst\x1eeza\x20\x2da\x20\x2d\x2dicons\x20\x2d\x2dgroup\x2ddirectories\x2dfirst\x1eeza\x20\x2d\x2dicons\x20\x2d\x2dgit\x20\x2d\x2dgroup\x2ddirectories\x2dfirst\x1eeza\x20\x2d\x2dlong\x20\x2d\x2dheader\x20\x2da\x20\x2d\x2dicons\x20\x2d\x2dtree\x20\x2d\x2dgit\x20\x2d\x2dgroup\x2ddirectories\x2dfirst\x1eeza\x20\x2d\x2dlong\x20\x2d\x2dheader\x20\x2d\x2dicons\x20\x2d\x2dtree\x20\x2d\x2dgit\x20\x2d\x2dgroup\x2ddirectories\x2dfirst\x1eunimatrix\x20\x2ds\x2095\x1eexit\x1esvn\x5c\x5c\x5c\x20\x2d\x2dconfig\x2ddir\x5c\x5c\x5c\x20\x5c\x5c\x5c\x5c\x5c\x5c\x5c\x22\x5c\x5c\x5c\x24XDG_CONFIG_HOME\x5c\x5c\x5c\x5c\x5c\x5c\x5c\x22/subversion\x1eyay\x20\x2dR\x20\x1eyay\x20\x2dSyu\x1envim\x1eyadm\x20push\x1eyarn\x20\x2d\x2duse\x2dyarnrc\x20\x22\x24XDG_CONFIG_HOME/yarn/config\x22\x1eyadm\x20commit\x20\x2dS\x20\x2da\x20\x2dm\x1eyadm\x20merge\x1eyadm\x20pull\x1eyadm\x20status\x1eyadm\x20switch\x1e__zoxide_z\x1e__zoxide_zi\x1etopgrade\x1e\x1epacseek\x1eyazi\x1enpm\x1enpm\x1enpm\x1enpm\x1enpm\x1enpm +SETUVAR --export __ABBR_TIPS_KEYS:a__bruh\x1ea__cat\x1ea__cd\x1ea__clock\x1ea__codeinfo\x1ea__disks\x1ea__dots\x1ea__dsize\x1ea__ea\x1ea__ef\x1ea__eg\x1ea__ev\x1ea__f\x1ea__fetch\x1ea__files\x1ea__fsend\x1ea__ga\x1ea__gbd\x1ea__gbl\x1ea__gcb\x1ea__gcf\x1ea__gclean\x1ea__gco\x1ea__gcp\x1ea__gct\x1ea__gd\x1ea__gfetch\x1ea__gfu\x1ea__gi\x1ea__glo\x1ea__gpt\x1ea__grb\x1ea__grc\x1ea__grh\x1ea__gsp\x1ea__gss\x1ea__h\x1ea__info\x1ea__install\x1ea__ip\x1ea__l\x1ea__ld\x1ea__ldh\x1ea__lh\x1ea__ls\x1ea__lsh\x1ea__lt\x1ea__lth\x1ea__matrix\x1ea__q\x1ea__svn\x1ea__uninstall\x1ea__update\x1ea__vim\x1ea__yP\x1ea__yarn\x1ea__yc\x1ea__ym\x1ea__yp\x1ea__yst\x1ea__ysw\x1ea__z\x1ea__zi\x1ea__tup\x1ea__\x1ea__pse\x1ea__fe\x1ea__ni\x1ea__nis\x1ea__nid\x1ea__nu\x1ea__nup\x1ea__nls\x1ea__vimv +SETUVAR --export __ABBR_TIPS_VALUES:genact\x20\x2ds\x204\x1ebat\x1ez\x1etty\x2dclock\x20\x2dsbc\x1escc\x20\x2e/\x1eduf\x1eyadm\x20enter\x20lazygit\x1edua\x20i\x1envim\x20\x7e/\x2econfig/fish/aliases\x2efish\x1envim\x20\x7e/\x2econfig/fish/config\x2efish\x1envim\x20\x7e/\x2egitconfig\x1envim\x20\x7e/\x2econfig/fish/variables\x2efish\x1efzf\x1eneofetch\x1explr\x1efloaterm\x1eforgit\x3a\x3aadd\x1eforgit\x3a\x3abranch\x3a\x3adelete\x1eforgit\x3a\x3ablame\x1eforgit\x3a\x3acheckout\x3a\x3abranch\x1eforgit\x3a\x3acheckout\x3a\x3afile\x1eforgit\x3a\x3aclean\x1eforgit\x3a\x3acheckout\x3a\x3acommit\x1eforgit\x3a\x3acherry\x3a\x3apick\x3a\x3afrom\x3a\x3abranch\x1eforgit\x3a\x3acheckout\x3a\x3atag\x1eforgit\x3a\x3adiff\x1eonefetch\x1eforgit\x3a\x3afixup\x1eforgit\x3a\x3aignore\x1eforgit\x3a\x3alog\x1etgpt\x20\x2di\x1eforgit\x3a\x3arebase\x1eforgit\x3a\x3arevert\x3a\x3acommit\x1eforgit\x3a\x3areset\x3a\x3ahead\x1eforgit\x3a\x3astash\x3a\x3apush\x1eforgit\x3a\x3astash\x3a\x3ashow\x1ezi\x1etldr\x1eyay\x20\x2dS\x20\x1eip\x20\x2dc\x20a\x1eeza\x20\x2d\x2dlong\x20\x2d\x2dheader\x20\x2da\x20\x2d\x2dicons\x20\x2d\x2dgit\x20\x2d\x2dgroup\x2ddirectories\x2dfirst\x1eeza\x20\x2d\x2dlong\x20\x2d\x2dheader\x20\x2da\x20\x2d\x2dicons\x20\x2dD\x20\x2d\x2dgit\x1eeza\x20\x2d\x2dlong\x20\x2d\x2dheader\x20\x2d\x2dicons\x20\x2dD\x20\x2d\x2dgit\x1eeza\x20\x2d\x2dlong\x20\x2d\x2dheader\x20\x2d\x2dicons\x20\x2d\x2dgit\x20\x2d\x2dgroup\x2ddirectories\x2dfirst\x1eeza\x20\x2da\x20\x2d\x2dicons\x20\x2d\x2dgroup\x2ddirectories\x2dfirst\x1eeza\x20\x2d\x2dicons\x20\x2d\x2dgit\x20\x2d\x2dgroup\x2ddirectories\x2dfirst\x1eeza\x20\x2d\x2dlong\x20\x2d\x2dheader\x20\x2da\x20\x2d\x2dicons\x20\x2d\x2dtree\x20\x2d\x2dgit\x20\x2d\x2dgroup\x2ddirectories\x2dfirst\x1eeza\x20\x2d\x2dlong\x20\x2d\x2dheader\x20\x2d\x2dicons\x20\x2d\x2dtree\x20\x2d\x2dgit\x20\x2d\x2dgroup\x2ddirectories\x2dfirst\x1eunimatrix\x20\x2ds\x2095\x1eexit\x1esvn\x5c\x5c\x5c\x20\x2d\x2dconfig\x2ddir\x5c\x5c\x5c\x20\x5c\x5c\x5c\x5c\x5c\x5c\x5c\x22\x5c\x5c\x5c\x24XDG_CONFIG_HOME\x5c\x5c\x5c\x5c\x5c\x5c\x5c\x22/subversion\x1eyay\x20\x2dR\x20\x1eyay\x20\x2dSyu\x1envim\x1eyadm\x20push\x1eyarn\x20\x2d\x2duse\x2dyarnrc\x20\x22\x24XDG_CONFIG_HOME/yarn/config\x22\x1eyadm\x20commit\x20\x2dS\x20\x2da\x20\x2dm\x1eyadm\x20merge\x1eyadm\x20pull\x1eyadm\x20status\x1eyadm\x20switch\x1e__zoxide_z\x1e__zoxide_zi\x1etopgrade\x1e\x1epacseek\x1eyazi\x1enpm\x1enpm\x1enpm\x1enpm\x1enpm\x1enpm\x1ebob SETUVAR __fish_initialized:3400 SETUVAR _fisher_acomagu_2F_fish_2D_async_2D_prompt_files:\x7e/\x2econfig/fish/conf\x2ed/__async_prompt\x2efish SETUVAR _fisher_danhper_2F_fish_2D_ssh_2D_agent_files:\x7e/\x2econfig/fish/functions/__ssh_agent_is_started\x2efish\x1e\x7e/\x2econfig/fish/functions/__ssh_agent_start\x2efish\x1e\x7e/\x2econfig/fish/conf\x2ed/fish\x2dssh\x2dagent\x2efish diff --git a/.config/fish/functions/vimv.fish b/.config/fish/functions/vimv.fish new file mode 100644 index 00000000..d256922d --- /dev/null +++ b/.config/fish/functions/vimv.fish @@ -0,0 +1,4 @@ +function vimv --wraps=bob --description 'alias vimv=bob' + bob $argv + +end diff --git a/.config/fish/variables.fish b/.config/fish/variables.fish index e0a2e6a5..690bc24d 100644 --- a/.config/fish/variables.fish +++ b/.config/fish/variables.fish @@ -30,10 +30,11 @@ fish_add_path /usr/bin fish_add_path /usr/sbin fish_add_path /bin fish_add_path /sbin -fish_add_path /usr/lib/rustup/bin/ -fish_add_path /usr/lib/go/bin/ +fish_add_path /usr/lib/rustup/bin +fish_add_path /usr/lib/go/bin fish_add_path $HOME/.dotnet/tools fish_add_path $BUN_INSTALL/bin +fish_add_path $XDG_DATA_HOME/bob/nvim-bin # Editor set -xg EDITOR nvim diff --git a/.config/pacman/packages.txt b/.config/pacman/packages.txt index bb6f9df1..08924e8b 100644 --- a/.config/pacman/packages.txt +++ b/.config/pacman/packages.txt @@ -23,6 +23,7 @@ bitwarden-cli-bin blender blueman bluez-utils +bob brave-bin bridge-utils btop