Skip to content

valcubeto/pathcheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The pathcheck command.

Parse your PATH variable and check the status of each path.

Installation

Cargo (build from source in any system)

cargo install pathcheck

Other

No more options at the moment. Releasing is tricky.

This will install the pathcheck command in $CARGO_HOME/bin/.

That folder should be on your PATH variable by the way.

To install elsewhere:

cargo install pathcheck --root /usr/local/bin

Usage

$ pathcheck
OK  /home/{user}/.cargo/bin
OK  /home/{user}/.bun/bin
OK  /usr/local/sbin
OK  /usr/local/bin
OK  /usr/sbin
OK  /usr/bin
OK  /sbin
OK  /bin
OK  /usr/games
OK  /usr/local/games
ERR /snap/bin

The --status-style flag let's you change the status text style between plain text (default), nerd font icons, emojis, or none.

The --no-status flag deactivates status calculations.

You can specify --header, --footer, --descriptions.

Display the line index with --enumerate.

Use the --color flag to change color behavior.

Use the --format flag to specify a different output format.

Run pathcheck --help for more information.

To simply display your paths:

pathcheck -S

Exit codes

This program tries to exit with the code that corresponds to your system's standard. See errno for Linux-based systems and net helpmsg for Windows.

Exit code 0 means no errors.

Changelog

v0.1.0

  • Release.

v0.2.0

  • Fixed a bug when exiting with a "not a directory" status code.

v1.0.0

  • Added formatting with the --format flag.

TODO

  • Add man docs

About

A complete tool to check the status of $PATH.

Topics

Resources

Stars

Watchers

Forks

Releases

Contributors

Languages