mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-07 20:31:01 -05:00
Merge pull request #1220 from romanlevin/patch-1
Fix fish shell initialization
This commit is contained in:
commit
c6324ff45a
2 changed files with 3 additions and 3 deletions
|
@ -70,7 +70,7 @@ if [ -z "$print" ]; then
|
|||
echo
|
||||
case "$shell" in
|
||||
fish )
|
||||
echo 'status --is-interactive; and source (rbenv init -|psub)'
|
||||
echo 'status --is-interactive; and rbenv init - | source'
|
||||
;;
|
||||
* )
|
||||
echo 'eval "$(rbenv init -)"'
|
||||
|
@ -114,7 +114,7 @@ function rbenv
|
|||
|
||||
switch "\$command"
|
||||
case ${commands[*]}
|
||||
source (rbenv "sh-\$command" \$argv|psub)
|
||||
rbenv "sh-\$command" \$argv|source
|
||||
case '*'
|
||||
command rbenv "\$command" \$argv
|
||||
end
|
||||
|
|
|
@ -54,7 +54,7 @@ OUT
|
|||
@test "fish instructions" {
|
||||
run rbenv-init fish
|
||||
assert [ "$status" -eq 1 ]
|
||||
assert_line 'status --is-interactive; and source (rbenv init -|psub)'
|
||||
assert_line 'status --is-interactive; and rbenv init - | source'
|
||||
}
|
||||
|
||||
@test "option to skip rehash" {
|
||||
|
|
Loading…
Reference in a new issue