Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A 'which' tool replacement written in rust.

License

NotificationsYou must be signed in to change notification settings

insomnimus/wh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Awhich replacement.

Features

  • On Windows: Check for missing extensions from thePATHEXT 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

Installation On Windows ViaScoop

This way you can update wh with scoop.

  1. Add mypersonal bucket to Scoop.
    scoop bucket add insomnia https://github.com/insomnimus/scoop-bucket
  2. Update scoop.
    scoop update
  3. Install wh.
    scoop install wh

Other Methods

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

Suggested Usage On Non-Windows Platforms

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.

Shell Completions

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.


[8]ページ先頭

©2009-2025 Movatter.jp