mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-11 22:10:09 +01:00
chore: override cnf only in interactive for fish
This commit is contained in:
parent
76d2efadb6
commit
9dba2485d8
1 changed files with 4 additions and 2 deletions
|
|
@ -3,7 +3,9 @@ function {{ alias }} -d "Suggest fixes to the previous command"
|
||||||
end
|
end
|
||||||
|
|
||||||
{%if cnf %}
|
{%if cnf %}
|
||||||
|
if status is-interactive
|
||||||
function fish_command_not_found --on-event fish_command_not_found
|
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 }}")
|
eval $(_PR_LAST_COMMAND="$argv" _PR_ALIAS="$(alias)" _PR_SHELL="fish" _PR_MODE="cnf" "{{ binary_path }}")
|
||||||
end
|
end
|
||||||
|
end
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue