Last Updated: February 25, 2016
·
5.321K
· prat0318

Display all commands offered by your installed oh-my-zsh plugins.

You may have installed many oh-my-zsh plugins, but it is hard to keep track of all aliases and commands offered by these plugins.

This is a short script which can be used to show all available commands. Just add the script at the bottom of your .zshrc, reload your config, and try options on the terminal.

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
}

Gist link is also available.

Example Result:

Plugin: vi-mode
zle-line-init,vi_mode_prompt_info,

Plugin: extract
extract,x,

Plugin: history-substring-search
history-substring-search-up,history-substring-search-down,_history-substring-search-begin,

Plugin: python
pyclean,pyfind,pygrep,

Plugin: ruby
sgem,rfind,

Plugin: ssh-agent
_plugin__start_agent,

Plugin: osx
tab,vsplit_tab,split_tab,pfd,pfs,cdf,pushdf,qlook,man-preview,trash,vncviewer,itunes,lsfinder,ldfinder,cdfinder,

Plugin: copyfile
copyfile,

Plugin: gitignore
gi,