https://github.com/mitchcapper/which
https://github.com/CarloWood/which
https://github.com/mitchcapper/which
Last synced: 5 months ago
JSON representation
https://github.com/CarloWood/which
- Host: GitHub
- URL: https://github.com/mitchcapper/which
- Owner: mitchcapper
- License: gpl-3.0
- Created: 2023-02-06T11:39:29.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-08-12T21:34:47.000Z (almost 3 years ago)
- Last Synced: 2025-07-05T16:44:07.636Z (12 months ago)
- Language: C
- Homepage: https://github.com/CarloWood/which
- Size: 343 KB
- Stars: 0
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.alias
- Changelog: NEWS
- License: COPYING
- Authors: AUTHORS
Awesome Lists containing this project
README
If you want `which' to inform you about aliases and shell functions in bash,
then you need to add the following five lines to your $HOME/.bash_profile:
function which ()
{
(alias; declare -f) | /usr/bin/which --tty-only --read-alias --read-functions --show-dot --show-tilde $@
}
export -f which
This is the recommended use of this `which'.
The C shell (csh, tcsh) doesn't have shell functions, but fortunately
inherites aliases in subshells. To support aliases with a C shell add
the following line to your .profile:
alias which 'alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'