Advertisement
Guest User

Untitled

a guest
Jan 27th, 2015
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. function fish_command_not_found --on-event fish_command_not_found
  2. echo "fish: Unknown command '$argv'" >&2
  3. if functions -q __fish_command_not_found_setup
  4. functions -e __fish_command_not_found_setup
  5. end
  6. if which pkgfile ^/dev/null >/dev/null
  7. if test (count $argv) -ge 1
  8. if pkgfile --binaries $argv[1] ^/dev/null >/dev/null
  9. echo -e "\n'$argv[1]' can be found in these packages:"
  10. for pkg in (pkgfile --binaries "$argv[1]")
  11. echo -e "\t$pkg"
  12. end
  13. end
  14. end
  15. end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement