mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-12 21:43:51 -05:00
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:
@@ -71,7 +71,7 @@ if [ -z "$print" ]; then
|
|||||||
echo
|
echo
|
||||||
case "$shell" in
|
case "$shell" in
|
||||||
fish )
|
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 -)"'
|
echo 'eval "$(pyenv virtualenv-init -)"'
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ load test_helper
|
|||||||
@test "fish instructions" {
|
@test "fish instructions" {
|
||||||
run pyenv-virtualenv-init fish
|
run pyenv-virtualenv-init fish
|
||||||
assert [ "$status" -eq 1 ]
|
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" {
|
@test "outputs bash-specific syntax" {
|
||||||
|
|||||||
Reference in New Issue
Block a user