Skip to content

Plugins

Pascal Zarrad edited this page Oct 18, 2019 · 7 revisions

Plugins are the opposite of templates - they provide rich functionality by allowing the extension of psh. They enable the possibility to built complex logic (or even call external scripts like a python helper script) to generate something that is system specific (like find something and put the path of it into the .zshrc).

For example, plugins are used by psh to apply all the antigen plugins. Also as powerline-fonts is not usable on the Windows Subsystem for Linux without installing it manually, they are used to determine if the fallback theme should be used to bypass that problem.

API

psh comes with some API methods to simplify the creation of plugins. All custom functions/commands can be found in the below table.

Command Function
apply_antigen_bundle Add an antigen bundle to load to the .zshrc
apply_antigen_theme Add a theme loaded by antigen to the .zshrc
Clone this wiki locally