mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-17 14:28:38 +00:00
fzf: fix fish integration
Since fzf 0.43.0, the fzf_key_bindings function is only defined when
fish is running interactively, see [1].
This caused errors when entering non-interactive fish shells since we
called fzf_key_bindings during startup.
[1]: 7e89458a3b
This commit is contained in:
parent
458ef9126a
commit
a20c614010
@ -79,7 +79,10 @@ buildGoModule rec {
|
||||
install -D shell/* -t $out/share/fzf/
|
||||
install -D shell/key-bindings.fish $out/share/fish/vendor_functions.d/fzf_key_bindings.fish
|
||||
mkdir -p $out/share/fish/vendor_conf.d
|
||||
echo fzf_key_bindings > $out/share/fish/vendor_conf.d/load-fzf-key-bindings.fish
|
||||
cat << EOF > $out/share/fish/vendor_conf.d/load-fzf-key-bindings.fish
|
||||
status is-interactive; or exit 0
|
||||
fzf_key_bindings
|
||||
EOF
|
||||
|
||||
cat <<SCRIPT > $out/bin/fzf-share
|
||||
#!${runtimeShell}
|
||||
|
Loading…
Reference in New Issue
Block a user