A pretty printer for $PATH written in Bash.
-
Close this repository.
-
Source
./pppath
on your .bashrc. -
Call
pppath
. For more detail, seepppath --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
You can also run pppath
as a standalone script even if you use another shell except bash.
-
Download
./pppath
and deploy it into a directory which is contained in your $PATH. -
Add executable permission(s) to it.
-
Call
pppath
. For more detail, seepppath --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