Skip to content

Commit

Permalink
[fish] drop interactiveness-checks support for fish versions < 3.4.0
Browse files Browse the repository at this point in the history
This improves commit 5cb5bbd by just returning
from the script in case it’s sourced from a non-interactive shell, rather then
using an `if`-block to not execute any further code (which is error prone, in
case code gets accidentally added outside the `if`, and also less readable).

This removes support for fish versions < 3.4.0, which should now no longer be
used.

Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
  • Loading branch information
calestyo committed Oct 11, 2027
1 parent 5cb5bbd commit 376308d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions shell/key-bindings.fish
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# - $FZF_ALT_C_COMMAND
# - $FZF_ALT_C_OPTS

if status is-interactive
status is-interactive; or return 0


# Key bindings
Expand Down Expand Up @@ -173,6 +173,3 @@ function fzf_key_bindings
end

end


end

0 comments on commit 376308d

Please sign in to comment.