mirror of
https://codeberg.org/iff/pay-respects.git
synced 2025-10-06 00:22:43 +02:00
chore: override cnf only in interactive for fish
This commit is contained in:
@@ -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 %}
|
||||
|
Reference in New Issue
Block a user