mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2026-09-10 07:16:18 -04:00
Merge pull request #176 from yyuu/fish-dot-to-source
Use `source` in favor of `.` (fixes #175)
This commit is contained in:
commit
1488c3ed65
|
|
@ -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 -)"'
|
||||
|
|
|
|||
|
|
@ -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" {
|
||||
|
|
|
|||
Loading…
Reference in a new issue