In zsh, when I enter which git it shows:git: aliased to noglob gitHow do I find out which git binary it actually invokes? (eg: /usr/bin/git vs ~/bin/git). Basically I want to bypass the aliases when I use which.
How do I find the actual binary/script using 'which' in zsh?
zsh;which
For zsh, which is shorthand for whence -c, and supports other whence options. In particular:-p   Do a path search for name even if it is an alias,      reserved word, shell function or builtin.So:$ which  git  git: aliased to noglob git$ which -p git/usr/bin/git