Manop is a simple Bash script that display a command description and options from Man page or help on macOS/Linux.
UNIX-lie (Tested on Ubuntu and MacOS.)
For macOS/Linux
awesome install manop
If you installed Homebrew on your macOS, you can run:
brew tap shinokada/manop && brew install manop
Download the latest deb file from the release page.
sudo apt install manop_XXXXXXX.deb
Replace XXXXXXX
with the downloaded version.
I keep manop in the /home/shin/awesome
directory:
mkdir /home/your-username/awesome
cd /home/your-username/awesome
git clone https://github.com/shinokada/manop.git
Create the ~/bin directory:
mkdir ~/bin
Check if /home/your-username/bin in the PATH variable:
echo $PATH
/home/your-username/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
If not add the /home/your-username/bin directory to the ~/.bashrc file.
export PATH="/home/your-username/bin:$PATH"
Source the ~/.bashrc file and check it again:
source ~/.bashrc
echo $PATH
Add a symlink:
ln -s /home/your-username/awesome/manop/manop ~/bin/manop
Check if the symlink is working:
which manop
/home/your-username/bin/manop
manop -h
Name:
=====
manop
...
# brew
brew unistall manop
# awesome
awesome rm manop
manop [ -t | -h | -v][ command name ][ command option ] -t | --trim Trim spaces -v | --version Show version -h | --help Help
Print wget -b
option description:
manop wget -b
Print the ls
command description:
manop ls
Print a builtin command description:
manop cd
Print the builtin cd -e option description:
manop cd -e
The outputs may have spaces. You can trim spaces using -t
flag:
manop grep -b
-b, --byte-offset
The offset in bytes of a matched pattern is displayed in front of
the respective matched line.
manop -t grep -b
-b, --byte-offset
The offset in bytes of a matched pattern is displayed in front of
the respective matched line.
To display builtin command help use help:
help cd
Shinichi Okada
Please see license.