chore: override cnf only in interactive for fish

This commit is contained in:
iff
2025-04-16 01:01:08 +02:00
parent 76d2efadb6
commit 9dba2485d8

View File

@@ -3,7 +3,9 @@ function {{ alias }} -d "Suggest fixes to the previous command"
end
{%if cnf %}
function fish_command_not_found --on-event fish_command_not_found
eval $(_PR_LAST_COMMAND="$argv" _PR_ALIAS="$(alias)" _PR_SHELL="fish" _PR_MODE="cnf" "{{ binary_path }}")
if status is-interactive
function fish_command_not_found --on-event fish_command_not_found
eval $(_PR_LAST_COMMAND="$argv" _PR_ALIAS="$(alias)" _PR_SHELL="fish" _PR_MODE="cnf" "{{ binary_path }}")
end
end
{% endif %}