Possible Duplicate:
How to usewhich
on an aliased command?
I'm used to working on systems where which
would list aliases, so e.g. if I have an alias like this:
alias foo=/path/to/executable
Then I get meaningful output from which foo
. (From memory it's something like alias: /path/to/executable
).
On my Macbook Pro (Snow Leopard) this doesn't work. I seem to recall it's non-standard and needs an alias of its own (on which
) to work, but I've forgotten the details. Can anyone point me in the right direction please?
(I'm a bash man if that makes any difference to your answer.)
type
before. There's a lot of muscle memory for me to overcome in order to wean offwhich
though. :) – Simon Whitaker Apr 05 '11 at 21:03alias which type
? – geekosaur Apr 05 '11 at 21:05alias where='type -a'
– glenn jackman Apr 05 '11 at 21:55