- Notifications
You must be signed in to change notification settings - Fork1
A 'which' tool replacement written in rust.
License
NotificationsYou must be signed in to change notification settings
insomnimus/wh
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Awhich
replacement.
- On Windows: Check for missing extensions from the
PATHEXT
environment variable as well as.exe
- Linux style globbing support.
- On non-Windows: Read function and alias definitions from stdin just like GNU which.
- On non-Windows: Mostly a superset of GNU which.
Installation On Windows ViaScoop
This way you can update wh with scoop.
- Add mypersonal bucket to Scoop.
scoop bucket add insomnia https://github.com/insomnimus/scoop-bucket
- Update scoop.
scoop update
- Install wh.
scoop install wh
Download a binary for your platform fromthe releases page
Or build it from source:
cargo install --locked --branch main --git https://github.com/insomnimus/wh
You might want to add a shell function in your profile so thatwh
can read your aliases and functions:
wh() {{aliasdeclare -f}| /usr/bin/wh --read-alias --read-functions"$@"}
Don't forget to change/usr/bin/wh
with the full path ofwh
on your system.
Currently there are hand-written tab completions for Powershell.You can get it by runningwh --completions powershell
.
Register it by saving the output into a.ps1
file and then running the script.If you want to have it be loaded automatically, add it to your Powershell profile.
About
A 'which' tool replacement written in rust.