|
|
|
|
|
by ekyo777
4676 days ago
|
|
For those like me who want to call it from their zsh, add the following to your .zshrc: explain(){ curl -s $(echo "http://explainshell.com/explain/$1?args=${@:2}" | sed -e 's/ /+/g') |
sed -n '/<pre/,/<\/pre>/p' | sed -s 's/<[^>]>//g' | sed -e 's/^ //g;s/ *$//g' | grep '.' | cat } and call it, for example like:
explain git status -s |
|