mirror of
https://github.com/pyenv/pyenv.git
synced 2024-12-22 20:51:17 +00:00
Merge pull request #615 from cha-ron/fish-depcrecated-period
"." has been deprecated in the fish shell in favor of explicit "source"
This commit is contained in:
commit
03f8029c41
2 changed files with 2 additions and 2 deletions
|
@ -70,7 +70,7 @@ if [ -z "$print" ]; then
|
||||||
echo
|
echo
|
||||||
case "$shell" in
|
case "$shell" in
|
||||||
fish )
|
fish )
|
||||||
echo 'status --is-interactive; and . (pyenv init -|psub)'
|
echo 'status --is-interactive; and source (pyenv init -|psub)'
|
||||||
;;
|
;;
|
||||||
* )
|
* )
|
||||||
echo 'eval "$(pyenv init -)"'
|
echo 'eval "$(pyenv init -)"'
|
||||||
|
|
|
@ -53,7 +53,7 @@ OUT
|
||||||
@test "fish instructions" {
|
@test "fish instructions" {
|
||||||
run pyenv-init fish
|
run pyenv-init fish
|
||||||
assert [ "$status" -eq 1 ]
|
assert [ "$status" -eq 1 ]
|
||||||
assert_line 'status --is-interactive; and . (pyenv init -|psub)'
|
assert_line 'status --is-interactive; and source (pyenv init -|psub)'
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "option to skip rehash" {
|
@test "option to skip rehash" {
|
||||||
|
|
Loading…
Reference in a new issue