mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-14 20:39:55 -05:00
Fix fish shell initialization
Since fish 3.10 at least, the current way of loading rbenv in `fish` is misbehaving, at least in some environments: ``` source: Error encountered while sourcing file '/var/folders/pj/jn249gcn7ddfrjzj2_9mxjhw0000gp/T//.psub.f0iJSWRByB': source: No such file or directory ``` This changes the initialization to the method recommended by a `fish` developer here: https://github.com/fish-shell/fish-shell/issues/6613#issuecomment-586679958
This commit is contained in:
parent
e429cc0bd8
commit
19ae300eb8
1 changed files with 1 additions and 1 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 -)"'
|
||||
|
|
Loading…
Reference in a new issue