Skip to content

Commit

Permalink
fish: config.fish: Only attempt to source zoxide when interactive
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Chancellor <[email protected]>
  • Loading branch information
nathanchance committed Nov 30, 2024
1 parent 24dc326 commit 7b23149
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fish/config.fish
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ if command -q fd
set -agx FZF_DEFAULT_OPTS --ansi
end

if command -q zoxide
if command -q zoxide; and status is-interactive
zoxide init --hook prompt fish | source
end

Expand Down

0 comments on commit 7b23149

Please sign in to comment.