fix(pp): update oh-my-zsh to use vcsrepo
oh-my-zsh will now use vcsrepo to install the package. This will now keep it up to date with the master branch. I don't think this package has been updated in quite some time.
This commit is contained in:
parent
034ae2d143
commit
956a8e1986
1 changed files with 9 additions and 9 deletions
|
|
@ -1,9 +1,9 @@
|
||||||
class core::zsh {
|
class core::zsh {
|
||||||
|
vcsrepo { "${user_home}/.oh-my-zsh":
|
||||||
exec { 'git clone ohmyzsh':
|
source => 'git://github.com/robbyrussell/oh-my-zsh.git',
|
||||||
creates => "${user_home}/.oh-my-zsh",
|
provider => 'git',
|
||||||
path => '/usr/bin:/usr/sbin:/bin',
|
user => $user,
|
||||||
command => "git clone git://github.com/robbyrussell/oh-my-zsh.git ${user_home}/.oh-my-zsh",
|
revision => 'master',
|
||||||
}
|
}
|
||||||
|
|
||||||
file { "${user_home}/.zshrc":
|
file { "${user_home}/.zshrc":
|
||||||
|
|
@ -21,7 +21,7 @@ class core::zsh {
|
||||||
ensure => 'link',
|
ensure => 'link',
|
||||||
owner => $user,
|
owner => $user,
|
||||||
target => find_file('core/oh-my-zsh/custom'),
|
target => find_file('core/oh-my-zsh/custom'),
|
||||||
require => [Exec['git clone ohmyzsh']],
|
require => [Vcsrepo["${user_home}/.oh-my-zsh"]],
|
||||||
force => true,
|
force => true,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -29,7 +29,7 @@ class core::zsh {
|
||||||
ensure => 'link',
|
ensure => 'link',
|
||||||
owner => $user,
|
owner => $user,
|
||||||
target => find_file('core/oh-my-zsh/lib'),
|
target => find_file('core/oh-my-zsh/lib'),
|
||||||
require => [Exec['git clone ohmyzsh']],
|
require => [Vcsrepo["${user_home}/.oh-my-zsh"]],
|
||||||
force => true,
|
force => true,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -37,7 +37,7 @@ class core::zsh {
|
||||||
ensure => 'link',
|
ensure => 'link',
|
||||||
owner => $user,
|
owner => $user,
|
||||||
target => find_file('core/oh-my-zsh/custom.zsh'),
|
target => find_file('core/oh-my-zsh/custom.zsh'),
|
||||||
require => [Exec['git clone ohmyzsh']],
|
require => [Vcsrepo["${user_home}/.oh-my-zsh"]],
|
||||||
force => true,
|
force => true,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -45,7 +45,7 @@ class core::zsh {
|
||||||
ensure => 'link',
|
ensure => 'link',
|
||||||
owner => $user,
|
owner => $user,
|
||||||
target => find_file('core/oh-my-zsh/plugins/notmuch'),
|
target => find_file('core/oh-my-zsh/plugins/notmuch'),
|
||||||
require => [Exec['git clone ohmyzsh']],
|
require => [Vcsrepo["${user_home}/.oh-my-zsh"]],
|
||||||
force => true,
|
force => true,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue