You are not logged in.
the default is unknown command but i would like to see if instead it would run a custom command
whenever i enter invalid input
Last edited by blutechgirl (2016-04-06 00:30:23)
Offline
i already looked there, but i didn't find anything relevant
Offline
This is where it's defined: https://github.com/fish-shell/fish-shel … .fish#L176
There's even a conditional for pkgfile, a utility on Arch that can search for packages that provide the missing command.
If that's not what you're looking for, perhaps you can override the built in handler. I don't use fish, so I don't know if that's possible or not.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
thanks that helped me figure it out
I replaced:
if test -f /etc/SuSE-release; and type -q -p command-not-found
function __fish_command_not_found_handler --on-event fish_command_not_found
/usr/bin/command-not-found $argv[1]
endwith
if test -f /etc/arch-release
function __fish_command_not_found_handler --on-event fish_command_not_found
/usr/bin/betty $argv[1]
endi used the command betty to call the betty digital assistant so when ever i type something like:
download http://www.mysite.com/something.tar.gz to something.tar.gzor
find me all files that contain californiain my terminal it would give me something useful without having to prefix every command with betty
EDIT: I had to install fish-git for this to work
Last edited by blutechgirl (2016-04-08 18:41:55)
Offline