mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-12 14:30:10 +01:00
11 lines
411 B
Fish
11 lines
411 B
Fish
function {{ alias }} -d "Suggest fixes to the previous command"
|
|
eval $(_PR_LAST_COMMAND="$(history | head -n 1)" _PR_ALIAS="$(alias)" _PR_SHELL="fish" "{{ binary_path }}")
|
|
end
|
|
|
|
{%if cnf %}
|
|
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 %}
|