ソースを参照
Updated documentation pyenv init for fish shell comform to readme. (#1703)
pull/1814/head
M. Smits
4年前
committed by
GitHub
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 4AEE18F83AFDEB23
-
libexec/pyenv-init
-
test/init.bats
|
|
@ -70,7 +70,7 @@ if [ -z "$print" ]; then |
|
|
|
echo |
|
|
|
case "$shell" in |
|
|
|
fish ) |
|
|
|
echo 'status --is-interactive; and source (pyenv init -|psub)' |
|
|
|
echo 'pyenv init - | source' |
|
|
|
;; |
|
|
|
* ) |
|
|
|
echo 'eval "$(pyenv init -)"' |
|
|
|
|
|
@ -53,7 +53,7 @@ OUT |
|
|
|
@test "fish instructions" { |
|
|
|
run pyenv-init fish |
|
|
|
assert [ "$status" -eq 1 ] |
|
|
|
assert_line 'status --is-interactive; and source (pyenv init -|psub)' |
|
|
|
assert_line 'pyenv init - | source' |
|
|
|
} |
|
|
|
|
|
|
|
@test "option to skip rehash" { |
|
|
|