ソースを参照

Deduplicate shims in $PATH for the fish shell during initialization (#430)

When a fish login shell is invoked within an existing login shell, avoid
duplicating path to the shims by removing existing occurrences before
prepending.
pull/431/head
Eric N. Vander Weele 2年前
committed by GitHub
コミット
c6ff093344
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更2行の追加0行の削除
  1. +2
    -0
      bin/pyenv-virtualenv-init

+ 2
- 0
bin/pyenv-virtualenv-init ファイルの表示

@ -86,6 +86,8 @@ fi
case "$shell" in
fish )
cat <<EOS
while set index (contains -i -- "${PYENV_VIRTUALENV_ROOT:-${PYENV_VIRTUALENV_INSTALL_PREFIX}}/shims" \$PATH)
set -eg PATH[\$index]; end; set -e index
set -gx PATH '${PYENV_VIRTUALENV_ROOT:-${PYENV_VIRTUALENV_INSTALL_PREFIX}}/shims' \$PATH;
set -gx PYENV_VIRTUALENV_INIT 1;
EOS

読み込み中…
キャンセル
保存