18

I want to install 2 Oh My Zsh plugins, but I don't know their names. My brother had also downloaded them some years ago, but he doesn't know their names either.

How can I know what Oh My Zsh plugins are installed in my brother's zsh?

BeastOfCaerbannog
  • 12,964
  • 10
  • 49
  • 77
Am.Shekari
  • 390
  • 1
  • 2
  • 19

1 Answers1

23

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
BeastOfCaerbannog
  • 12,964
  • 10
  • 49
  • 77