Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fish] Improve fish binary path detection #4208

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

bitraid
Copy link
Contributor

@bitraid bitraid commented Jan 28, 2025

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.

This change ensures that fzf is executing the shell commands using the same fish binary that the function is running with. Can be useful now that the upcoming version of fish can be self-installable (fish-shell/fish-shell#10367), coexisting with a different system installed version, or when testing different builds of fish in general. Tested to work with fish v3.1.2.

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.
@junegunn junegunn merged commit cf2bb5e into junegunn:master Jan 28, 2025
5 checks passed
@junegunn
Copy link
Owner

Thanks!

@bitraid bitraid deleted the fish-bin-path branch January 28, 2025 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants