Use source in favor of . (fixes #175)

* https://github.com/yyuu/pyenv/pull/615
* https://github.com/fish-shell/fish-shell/issues/310
This commit is contained in:
Yamashita, Yuu
2016-05-30 00:13:49 +00:00
parent f58bdb5cd5
commit 5c2d7dc291
2 changed files with 2 additions and 2 deletions

View File

@@ -71,7 +71,7 @@ if [ -z "$print" ]; then
echo
case "$shell" in
fish )
echo 'status --is-interactive; and . (pyenv virtualenv-init -|psub)'
echo 'status --is-interactive; and source (pyenv virtualenv-init -|psub)'
;;
* )
echo 'eval "$(pyenv virtualenv-init -)"'

View File

@@ -42,7 +42,7 @@ load test_helper
@test "fish instructions" {
run pyenv-virtualenv-init fish
assert [ "$status" -eq 1 ]
assert_output_contains 'status --is-interactive; and . (pyenv virtualenv-init -|psub)'
assert_output_contains 'status --is-interactive; and source (pyenv virtualenv-init -|psub)'
}
@test "outputs bash-specific syntax" {