Handy functions for Zsh to explain commands using [http://www.explainshell.com](Explain Shell).
*Requirements: zsh
Running explain-command
or explain
will open a browser on [http://www.explainshell.com](Explain Shell)
explaining the command given as argument.
E.g: explain-command fs aux
explain-last
and explain-last-command
will explain the last command.
-
Download the script or clone this repository:
git clone git://github.com/gmatheu/zsh-explain-shell.git
-
Source the script at the end of
~/.zshrc
:source /path/to/zsh-explain-shell/zsh-explain-shell.zsh
-
Source
~/.zshrc
to take changes into account:source ~/.zshrc
-
Download the script or clone this repository in oh-my-zsh plugins directory:
cd ~/.oh-my-zsh/custom/plugins git clone git://github.com/gmatheu/zsh-explain-shell.git
-
Activate the plugin in
~/.zshrc
(in last position):plugins=( [plugins...] zsh-explain-shell)
-
Source
~/.zshrc
to take changes into account:source ~/.zshrc
-
Having antigen properly installed, just run:
antigen gmatheu/zsh-explain-shell