mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-11 15:37:24 +00:00
Fix to make fish_command_not_found_handler run the first time
This commit is contained in:
parent
978066a6de
commit
d4a171a791
1 changed files with 2 additions and 0 deletions
|
@ -232,12 +232,14 @@ function __fish_config_interactive -d "Initializations that should be performed
|
|||
function fish_command_not_found_handler --on-event fish_command_not_found
|
||||
/usr/lib/command-not-found $argv
|
||||
end
|
||||
fish_command_not_found_handler $argv
|
||||
else
|
||||
# Ubuntu Feisty places this command in the regular path instead
|
||||
if type -p command-not-found > /dev/null 2> /dev/null
|
||||
function fish_command_not_found_handler --on-event fish_command_not_found
|
||||
command-not-found $argv
|
||||
end
|
||||
fish_command_not_found_handler $argv
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue