pgibler / cmdh

Create Linux commands from natural language, in the shell.
MIT License
91 stars 6 forks source link

Add cmdh call to Fish shell default fallback function #5

Open pgibler opened 9 months ago

pgibler commented 9 months ago

Fish shell contains a fish_command_not_found function that is run when the executed command can't be found. Adding cmdh to the function call would allow the command to be found successfully even if the shell fails to find the command.

https://fishshell.com/docs/current/cmds/fish_command_not_found.html

See: https://github.com/jmorganca/ollama/pull/1595