Skip to content

a5ob7r/pppath

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pppath

CI

A pretty printer for $PATH written in Bash.

screenshot01

Usage

As a Shell Function

  1. Close this repository.

  2. Source ./pppath on your .bashrc.

  3. Call pppath. For more detail, see pppath --help.

For example,

# Clone this repository into your home directory.
cd
git clone https://github.com/a5ob7r/pppath.git

# Append a config to your .bashrc to load pppath.
echo 'source ~/pppath/pppath' >> ~/.bashrc

# Reload the .bashrc in the current session.
source ~/.bashrc

# Call pppath.
pppath

As a standalone script

You can also run pppath as a standalone script even if you use another shell except bash.

  1. Download ./pppath and deploy it into a directory which is contained in your $PATH.

  2. Add executable permission(s) to it.

  3. Call pppath. For more detail, see pppath --help.

For example,

# Download './pppath' onto /usr/local/bin, which we assume that your $PATH contains it.
curl -L https://raw.githubusercontent.com/a5ob7r/pppath/master/pppath > /usr/local/bin/pppath
# Or maybe need to run this instead if you have no permissions to write /usr/local/bin.
curl -L https://raw.githubusercontent.com/a5ob7r/pppath/master/pppath | sudo tee /usr/local/bin/pppath

# Add executable permissions to it.
chmod +x ~/bin/pppath
# Or
sudo chmod +x ~/bin/pppath

# Run it.
pppath

About

A pretty printer for $PATH written in Bash.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages