fish-shell/share
Kevin Ballard bfd3a47380 Fix type function to work better
Stop using getopt to parse flags. It's far more expensive than
necessary, and results in long flags not being parsed on OS X. This also
allows args starting with - after the options list to be properly
interpreted as a value to test.

Print the error message to stderr as is appropriate.

Use the new `command -p` functionality when the -a flag has not been
provided (`command` does not have any equivalent to the -a flag),
instead of using `which`. This is faster and also avoids any possible
disagreement between `which` and what fish thinks is valid.

Stop testing every path to see if it's executable, that test has already
been done by `which` or `command -p`.

The end result is `type -P ls` is roughly 250% faster, according to
profiling, on my OS X machine.
2014-07-13 19:11:29 -07:00
..
completions Add dropbox completion 2014-07-06 20:40:53 +08:00
functions Fix type function to work better 2014-07-13 19:11:29 -07:00
tools Fixed code to parse bindings for webconfig 2014-06-08 16:05:00 +05:30
config.fish Make fish install a command_not_found handler in non-interactive uses. 2014-02-20 10:26:57 -08:00