Defined Type: ohmyzsh::plugins
- Defined in:
- manifests/plugins.pp
Overview
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'manifests/plugins.pp', line 1
define ohmyzsh::plugins(
$plugins = 'git',
$user = $name
) {
if $user == 'root' { $home = '/root' } else { $home = "${ohmyzsh::params::home}/${user}" }
if $user {
file_line { "${user}-${plugins}-install":
path => "${home}/.zshrc",
line => "plugins=(${plugins})",
match => '^plugins=',
require => Ohmyzsh::Install[$user]
}
}
}
|