From 19ae300eb8c5071b6712b20bf3f52f7bfccfecc4 Mon Sep 17 00:00:00 2001 From: Roman Levin Date: Sun, 16 Feb 2020 22:58:20 +0100 Subject: [PATCH] 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 --- libexec/rbenv-init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/rbenv-init b/libexec/rbenv-init index 7fb7ccd1..4fb8d2e1 100755 --- a/libexec/rbenv-init +++ b/libexec/rbenv-init @@ -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 -)"'