Monday, July 7, 2014
which and alias: which doesn't consider aliases......use type not which
Have you notive that "which cmd" doesn't give your alias path if cmd is in your aliases?
Use type instead of which.
usage: which [options] [--] COMMAND [...]
Write the full path of COMMAND(s) to standard output.
usage: type [-aftpP] name [name ...]