Puppet Class: ohmyzsh
- Inherits:
- ohmyzsh::params
- Defined in:
- manifests/init.pp
Overview
Class: ohmyzsh
This is the ohmyzsh module. It installs oh-my-zsh for a user and changes its shell to zsh.
This module is called ohmyzsh as Puppet does not support hyphens in module names.
oh-my-zsh is a community-driven framework for managing your zsh configuration.
Parameters
- zsh
-
define path to zsh binary
- home
-
define root path of users homedirectory, default is /home.
Examples
class { ‘ohmyzsh’: } ohmyzsh::install { ‘acme’: } ohmyzsh::theme { ‘acme’: theme => ‘clean’ } ohmyzsh::plugins { ‘acme’: plugins => ‘git github’ }
Authors
Leon Brocard <acme@astray.com>
Copyright
Copyright 2013 Leon Brocard
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'manifests/init.pp', line 35
class ohmyzsh(
$zsh = $ohmyzsh::params::zsh,
$home = $ohmyzsh::params::home
) inherits ohmyzsh::params {
if(!defined(Package['git'])) {
package { 'git':
ensure => present,
}
}
if(!defined(Package['zsh'])) {
package { 'zsh':
ensure => present,
}
}
}
|