This is a oh-my-zsh module. It installs oh-my-zsh for a user and can change their shell to zsh. It can install and configure themes and plugins for users.
oh-my-zsh is a community-driven framework for managing your zsh configuration. See https://github.com/robbyrussell/oh-my-zsh for more details.
In order to install rehan-ohmyzsh
, run the following command:
$ puppet module install rehan-ohmyzsh
The module does expect all the data to be provided through 'Hiera'. See Usage for examples on how to configure it.
This module is designed to be as clean and compliant with latest puppet code guidelines.
# for a single user
ohmyzsh::install { 'user1': }
# for multiple users in one shot and set their shell to zsh
ohmyzsh::install { ['root', 'user1']: set_sh => true }
# install and disable prompt for automatic updates
ohmyzsh::install { 'user2': auto_update_mode => disabled }
# install and sync the .zshrc when upstream project is updated.
ohmyzsh::install { 'user2': update_zshrc => sync }
# install a theme for a user
ohmyzsh::fetch::theme { 'root': url => 'http://zanloy.com/files/dotfiles/oh-my-zsh/squared.zsh-theme' }
# set a theme for a user
ohmyzsh::theme { ['root', 'user1']: } # would install 'clean' theme as default
ohmyzsh::theme { ['root', 'user1']: theme => 'robbyrussell' } # specific theme
# activate plugins for a user
ohmyzsh::plugins { 'user1': plugins => ['git', 'github'] }
YAML
ohmyzsh::installs:
alice:
set_sh: true
bob:
set_sh: true
ohmyzsh::themes:
alice:
theme: 'random'
bob:
theme: 'amuse'
ohmyzsh::plugins:
alice:
plugins: ['autojump', 'git', 'screen', 'ssh-agent', 'sudo', 'tmux' ]
custom_plugins:
zsh-syntax-highlighting:
ensure: latest
source: git
url: 'https://github.com/zsh-users/zsh-syntax-highlighting.git'
zsh-autosuggestions:
ensure: latest
source: git
url: 'https://github.com/zsh-users/zsh-autosuggestions.git'
bob:
plugins: ['autojump', 'git', 'screen', 'ssh-agent', 'sudo', 'tmux', 'vagrant', 'scala', 'rvm' ]
You can submit pull requests and create issues through the official page of this module on GitHub. Please do report any bug and suggest new features/improvements.
This module was originally a fork of zanloy/ohmyzsh at version 0.1.3