Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function fish_command_not_found --on-event fish_command_not_found
- echo "fish: Unknown command '$argv'" >&2
- if functions -q __fish_command_not_found_setup
- functions -e __fish_command_not_found_setup
- end
- if which pkgfile ^/dev/null >/dev/null
- if test (count $argv) -ge 1
- if pkgfile --binaries $argv[1] ^/dev/null >/dev/null
- echo -e "\n'$argv[1]' can be found in these packages:"
- for pkg in (pkgfile --binaries "$argv[1]")
- echo -e "\t$pkg"
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement