Created
January 14, 2015 12:23
-
-
Save prat0318/e962e3dd8e63751fe916 to your computer and use it in GitHub Desktop.
`options` command to show all the aliases and functions offered by plugins you have installed via oh-my-zsh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function options() { | |
| PLUGIN_PATH="$HOME/.oh-my-zsh/plugins/" | |
| for plugin in $plugins; do | |
| echo "\n\nPlugin: $plugin"; grep -r "^function \w*" $PLUGIN_PATH$plugin | awk '{print $2}' | sed 's/()//'| tr '\n' ', '; grep -r "^alias" $PLUGIN_PATH$plugin | awk '{print $2}' | sed 's/=.*//' | tr '\n' ', ' | |
| done | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a bug with your script. Also you might just check if $ZSH is .dotfiles or the $ZSH directory
It's in the
.oh-my-zsh/custom/plugins/directory.