···33end
4455if functions -q __fish_git_using_command
66- # Add completion for --no-verify
66+ # Add completions for --no-verify
77 complete -x -c git -n '__fish_git_using_command commit' \
88 --long no-verify --short n --description 'Bypass the pre-commit and commit-msg hooks'
99+ complete -x -c git -n '__fish_git_using_command push' \
1010+ --long no-verify --short n --description 'Bypass the pre-push hook'
1111+1212+ # Technically `on-demand` is also an option but idk I don't really use that
1313+ complete -x -c git -n '__fish_git_using_command fetch' \
1414+ --long recurse-submodules --description 'Whether new commits of submodules should be fetched too' \
1515+ --long no-recurse-submodules --description 'Whether new commits of submodules should be fetched too'
9161017 # Add branch completions for custom !sh aliases
1118 for cmd in bpull sswitch ssw ls merge-latest
-7
.config/fish/conf.d/05-xdg-dirs.fish
···2020export WINEPREFIX="$XDG_DATA_HOME"/wine
212122222323-# TODO: I may want to set this differently for x86_64 + aarch64 versions
2424-# It also seems to require a reinstall for stuff to work, otherwise it's possible
2525-# to end up with infinite symlink loops!
2626-#
2727-# set -gx PYENV_ROOT "$XDG_DATA_HOME"/pyenv
2828-2929-3023# TODO:
3124# - .cargo
3225# - .gitconfig
+16-38
.config/fish/conf.d/51-envs.fish
···1414 end
15151616 if command -qs pyenv; and not set -qg __fish_pyenv_initialized
1717- ###############################################################
1818- # Begin generated content
1919- ###############################################################
2020- while set pyenv_index (contains -i -- ~/.pyenv/shims $PATH)
2121- set -eg PATH[$pyenv_index]
2222- end
2323- set -e pyenv_index
2424- set -gx PATH ~/.pyenv/shims $PATH
2525- set -gx PYENV_SHELL fish
2626- function pyenv
2727- set command $argv[1]
2828- set -e argv[1]
2929-3030- switch "$command"
3131- case activate deactivate rehash shell
3232- source (pyenv "sh-$command" $argv|psub)
3333- case '*'
3434- command pyenv "$command" $argv
3535- end
3636- end
3737-3838- # NOTE: Modified to use glob instead of hardcoded version
3939- # also checking for stuff besides custom .local/bin
4040- if command -sa brew | grep -qv '\.local'
4141- set -gx PATH (brew --cellar)/pyenv-virtualenv/*/shims $PATH
4242- end
4343- set -gx PYENV_VIRTUALENV_INIT 1
4444- # NOTE: modified for https://github.com/pyenv/pyenv-virtualenv/issues/338
4545- # Also see https://github.com/pyenv/pyenv-virtualenv/issues/45
4646- function _pyenv_virtualenv_hook --on-variable PWD --on-variable PYENV_VERSION
4747- set -l ret $status
4848- if [ -n "$VIRTUAL_ENV" ]
4949- pyenv activate --quiet; or pyenv deactivate --quiet; or true
1717+ # TODO: this might be a little slower than what I used to have, but
1818+ # it should work better when pyenv-x86 is also installed
1919+ function _pyenv_hook --on-variable PWD --on-variable PYENV_VERSION
2020+ set --erase PYENV_VERSION PYENV_ROOT PYENV_SHELL PYENV_VIRTUALENV_INIT
2121+ set -l version_file (upfind .python-version)
2222+ if test -f "$version_file"; and test "$(head -n1 "$version_file")" = "#!x86_64"
2323+ set -gx PYENV_ROOT (pyenv-x86 root)
2424+ test -d $PYENV_ROOT/bin; and fish_add_path --global "$PYENV_ROOT/bin"
2525+ pyenv-x86 init --no-rehash - fish | source
2626+ pyenv-x86 virtualenv-init - fish | source
5027 else
5151- pyenv activate --quiet; or true
2828+ set -gx PYENV_ROOT (pyenv root)
2929+ test -d $PYENV_ROOT/bin; and fish_add_path --global "$PYENV_ROOT/bin"
3030+ pyenv init --no-rehash - fish | source
3131+ pyenv virtualenv-init - fish | source
5232 end
5353- return $ret
5433 end
5555- ###############################################################
5656- # End generated content
5757- ###############################################################
3434+ _pyenv_hook
3535+ set -g __fish_pyenv_initialized
5836 end
59376038 if command -qs rbenv; and not set -qg __fish_rbenv_initialized
···11+" Builtin JSONC still errors for trailing commas, but at least for
22+" use cases I care about they are parsed fine, so clear the syntax group:
33+if !exists('g:vim_json_warnings') || g:vim_json_warnings==1
44+ syntax clear jsonTrailingCommaError
55+endif
+8-4
.vimrc
···3838" filetype matching
3939augroup CustomFiletypes
4040 autocmd!
4141- autocmd BufRead,BufNewFile */.ssh/config* set filetype=sshconfig
4242- autocmd BufRead,BufNewFile */.gitconfig* set filetype=gitconfig
4141+ autocmd BufRead,BufNewFile */.ssh/config* set filetype=sshconfig
4242+ autocmd BufRead,BufNewFile */.gitconfig* set filetype=gitconfig
43434444- autocmd BufRead,BufNewFile *.yaml set nocindent
4545- autocmd BufRead,BufNewFile *.yml set nocindent
4444+ autocmd BufRead,BufNewFile *.yaml set nocindent
4545+ autocmd BufRead,BufNewFile *.yml set nocindent
4646+4747+ autocmd BufRead,BufNewFile */Code/User/*.json set filetype=jsonc
4848+ autocmd BufRead,BufNewFile */.vscode/*.json set filetype=jsonc
4949+ autocmd BufRead,BufNewFile *.code-workspace set filetype=jsonc
4650augroup END
47514852" Keybinds for info files