Skip to content
Myr

[fish] Improve fish binary path detection (#4208)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Instead of exporting a local `$SHELL` containing the location of fish in `$PATH` when global `$SHELL` is not fish, always set `--with-shell` with the actual binary path of fish that the function is running from.

authored by bitraid · committed by GitHub · parent f466e94 · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:shell/key-bindings.fish+2 added-1 removed
62 unmodified lines
6364 set -lx FZF_DEFAULT_OPTS (__fzf_defaults "" "-n2..,.. --scheme=history --bind=ctrl-r:toggle-sort --wrap-sign '"\t"↳ ' --highlight-line +m $FZF_CTRL_R_OPTS")65 set -lx FZF_DEFAULT_OPTS_FILE ''66 set -lx FZF_DEFAULT_COMMAND67 string match -q -r -- '/fish$' $SHELL; or set -lx SHELL (type -p fish)67 set -a -- FZF_DEFAULT_OPTS --with-shell=(status fish-path)\\ -c6869 if type -q perl70 set -a FZF_DEFAULT_OPTS '--tac'71 set FZF_DEFAULT_COMMAND 'builtin history -z --reverse | command perl -0 -pe \'s/^/$.\t/g; s/\n/\n\t/gm\''72 else
128 unmodified lines