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:
Roman Levin 2020-02-16 22:58:20 +01:00 committed by Roman Levin
parent e429cc0bd8
commit 19ae300eb8

View file

@ -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 -)"'