How to know what plugins are installed in my Oh My Zsh

Solution 1:

I suppose that you installed Oh My Zsh by running the following command:

sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"

In this case, Oh My Zsh plugins are installed in the ~/.oh-my-zsh/plugins directory, so running the following command will return a list of your installed plugins:

ls ~/.oh-my-zsh/plugins

To enable a plugin, just add its name (as shown from the above command) in plugins=(...) in your ~/.zshrc file. From the Oh My Zsh wiki:

Enable a plugin by adding its name to the plugins array in your .zshrc file (found in the $HOME directory). For example, this enables the rails, git and ruby plugins, in that order:

plugins=(rails git ruby)

You can list the enabled plugins with:

echo $plugins