···5959 /usr/local/bin \
6060 /usr/local/sbin
61616262-if status is-interactive
6363- if command -qs pyenv; and not set -qg __fish_pyenv_initialized
6464- # strip out completions, they are slow to source immediately.
6565- # Use a symlink in ~/.config/fish/completions instead
6666- pyenv init --path --no-rehash - | /usr/bin/grep -v completions | source
6767- #
6868- # Disable extraneous message from pyenv-virtualenv, since we use a
6969- # custom prompt anyway
7070- set -gx PYENV_VIRTUALENV_DISABLE_PROMPT 1
6262+test -e {$HOME}/.iterm2_shell_integration.fish; and source {$HOME}/.iterm2_shell_integration.fish
71637272- pyenv virtualenv-init - fish | source
7373-7474- set -g __fish_pyenv_initialized
7575- end
7676-7777- if command -qs rbenv; and not set -qg __fish_rbenv_initialized
7878- rbenv init - --no-rehash | source
7979- set -g __fish_rbenv_initialized
8080- end
8181-8282- if test -f .nvmrc
8383- nvm use
8484- end
6464+if status is-interactive; and test -f .nvmrc
6565+ nvm use
8566end
86678768# This is hella slow, let's not use it for now...
+70
.config/fish/conf.d/51-envs.fish
···11+# "hardcoded" implementations of `pyenv init`, `rbenv init` etc., to save on
22+# startup cost from those calls invoking bash and stuff like that.
33+#
44+# Also slightly modified to be more portable (~ instead of absolute path, globs
55+# instead of hardcoded versions).
66+77+if status is-interactive
88+ if command -qs pyenv; and not set -qg __fish_pyenv_initialized
99+ ###############################################################
1010+ # Begin generated content
1111+ ###############################################################
1212+ while set pyenv_index (contains -i -- ~/.pyenv/shims $PATH)
1313+ set -eg PATH[$pyenv_index]
1414+ end
1515+ set -e pyenv_index
1616+ set -gx PATH ~/.pyenv/shims $PATH
1717+ set -gx PYENV_SHELL fish
1818+ function pyenv
1919+ set command $argv[1]
2020+ set -e argv[1]
2121+2222+ switch "$command"
2323+ case activate deactivate rehash shell
2424+ source (pyenv "sh-$command" $argv|psub)
2525+ case '*'
2626+ command pyenv "$command" $argv
2727+ end
2828+ end
2929+3030+ # NOTE: Modified to use glob instead of hardcoded version
3131+ set -gx PATH /usr/local/Cellar/pyenv-virtualenv/*/shims $PATH
3232+ set -gx PYENV_VIRTUALENV_INIT 1
3333+ # NOTE: modified for https://github.com/pyenv/pyenv-virtualenv/issues/338
3434+ # Also see https://github.com/pyenv/pyenv-virtualenv/issues/45
3535+ function _pyenv_virtualenv_hook --on-variable PWD --on-variable PYENV_VERSION
3636+ set -l ret $status
3737+ if [ -n "$VIRTUAL_ENV" ]
3838+ pyenv activate --quiet; or pyenv deactivate --quiet; or true
3939+ else
4040+ pyenv activate --quiet; or true
4141+ end
4242+ return $ret
4343+ end
4444+ ###############################################################
4545+ # End generated content
4646+ ###############################################################
4747+ end
4848+4949+ if command -qs rbenv; and not set -qg __fish_rbenv_initialized
5050+ ###############################################################
5151+ # Begin generated content
5252+ ###############################################################
5353+ set -gx PATH ~/.rbenv/shims $PATH
5454+ set -gx RBENV_SHELL fish
5555+ function rbenv
5656+ set command $argv[1]
5757+ set -e argv[1]
5858+5959+ switch "$command"
6060+ case rehash shell
6161+ rbenv "sh-$command" $argv | source
6262+ case '*'
6363+ command rbenv "$command" $argv
6464+ end
6565+ end
6666+ ###############################################################
6767+ # End generated content
6868+ ###############################################################
6969+ end
7070+end
+1-1
.vscode/argv.json
···20202121 // Unique id used for correlating crash reports sent from this instance.
2222 // Do not edit this value.
2323- "crash-reporter-id": "6bd1a9a4-325c-45a1-b049-2a2acdb43dd4",
2323+ "crash-reporter-id": "6bd1a9a4-325c-45a1-b049-2a2acdb43dd4"
2424}