Installs antigen to easily manage your zsh plugins, called bundles (e.g. oh-my-zsh).
From the puppet forge:
$ puppet module install lukrop-antigenOr simply clone this git repository:
$ git clone https://github.com/lukrop/puppet-lukrop-antigen.git $MODULES_PATH/antigenThis module..
- clones the antigen git repository to
$HOME/.antigen - creates a file
$HOME/.antigen-puppet.zshwhich contains the appropriate antigen commands to apply a theme, use a library and bundles. - creates a line in
$HOME/.zshrccontainingsource $HOME/.antigen-puppet.zsh. If$HOME/.zshrcis not present it will be created. - changes the given user's shell to zsh
$HOME is the home directory of the supplied user.
# include base class
include antigen
# install for a single user with defaults
antigen::install { 'lukrop': }
# install for a single user with specified theme and bundles
antigen::install { 'lukrop':
theme => 'mrtazz',
bundles => ['git', 'ruby'],
}
# install for multiple users
antigen::install { ['root', 'lukrop']: }
# update all bundles for a user
antigen::update { 'lukrop': }
# selfupdate (update antigen itself)
antigen::selfupdate { ['lukrop', 'root']: }
antigen parameters:
zshpath to zsh binary.homebase path for users home directories.git_pkgoptionally supply the name of the git package to be installed. Default: 'git'.zsh_pkgoptionally supply the name of the zsh package to be installed. Default: 'zsh'.
Both, zsh and home have sensible defaults depending on $::operatingsystem. Supported are GNU/Linux, BSD and Darwin.
antigen::install parameters:
useruser for whom to install antigen. If none is supplied the resource name is used.librarywhich zsh base library to use. Options are 'oh-my-zsh' or 'prezto'. Default: 'oh-my-zsh'themename of the zsh prompt theme. Default: 'clean'bundleslist of bundles to use. Default: ['git']auto_updateif using oh-my-zsh as base library, whether to automatically update oh-my-zsh. This just exportsDISABLE_AUTO_UPDATE=true. Default: true.update_promptif using oh-my-zsh as base library, whether to show the update prompt. This just exportsDISABLE_UPDATE_PROMPT=true. Default: true.force_replaceoverwrites existing .zshrc and deletes ~/.antigen if no valid git repo. Default: false.