Skip to content

Klausc06/what-is-installed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

what-is-installed

A small shell tool that shows what command-line tools are actually available in your $PATH.

Features

  • Dynamically scans all directories in $PATH — no hardcoded list, no assumptions
  • Shows version info for every discovered command
  • Deduplicates: same command name only checked once; same file only shown once
  • Zero external dependencies

Usage

./bin/what-is-installed

Example Output

已发现的命令
python3.11         3.11.15        /Users/you/.local/bin/python3.11
uv                 0.11.8         /Users/you/.local/bin/uv
brew               5.1.5          /opt/homebrew/bin/brew
gh                 2.89.0         /opt/homebrew/bin/gh
docker             29.3.1         /usr/local/bin/docker
node               24.14.0        /usr/local/bin/node
npm                11.9.0         /usr/local/bin/npm
cat                无             /bin/cat

How it works

  1. Reads your $PATH environment variable
  2. For each directory, finds all executable files
  3. Tries --version (or -V as fallback) on each command
  4. Extracts the version number; shows "无" if unavailable
  5. Caches results: same command name only checked once

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages