2020-09-20 05:22:17 +00:00
|
|
|
class core::zsh {
|
2021-07-18 12:57:04 +00:00
|
|
|
vcsrepo { "${user_home}/.oh-my-zsh":
|
2022-06-12 19:44:21 +00:00
|
|
|
source => 'https://github.com/robbyrussell/oh-my-zsh.git',
|
2021-07-18 12:57:04 +00:00
|
|
|
provider => 'git',
|
|
|
|
|
user => $user,
|
|
|
|
|
revision => 'master',
|
2020-09-20 05:22:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
file { "${user_home}/.zshrc":
|
|
|
|
|
ensure => 'link',
|
|
|
|
|
owner => $user,
|
|
|
|
|
target => find_file('core/zshrc'),
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
file { "${user_home}/.oh-my-zsh/custom/plugins":
|
|
|
|
|
ensure => 'directory',
|
|
|
|
|
owner => $user,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
file {"${user_home}/.oh-my-zsh/custom/custom":
|
|
|
|
|
ensure => 'link',
|
|
|
|
|
owner => $user,
|
|
|
|
|
target => find_file('core/oh-my-zsh/custom'),
|
2021-07-18 12:57:04 +00:00
|
|
|
require => [Vcsrepo["${user_home}/.oh-my-zsh"]],
|
2020-09-20 05:22:17 +00:00
|
|
|
force => true,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
file {"${user_home}/.oh-my-zsh/custom/lib":
|
|
|
|
|
ensure => 'link',
|
|
|
|
|
owner => $user,
|
|
|
|
|
target => find_file('core/oh-my-zsh/lib'),
|
2021-07-18 12:57:04 +00:00
|
|
|
require => [Vcsrepo["${user_home}/.oh-my-zsh"]],
|
2020-09-20 05:22:17 +00:00
|
|
|
force => true,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
file {"${user_home}/.oh-my-zsh/custom/custom.zsh":
|
|
|
|
|
ensure => 'link',
|
|
|
|
|
owner => $user,
|
|
|
|
|
target => find_file('core/oh-my-zsh/custom.zsh'),
|
2021-07-18 12:57:04 +00:00
|
|
|
require => [Vcsrepo["${user_home}/.oh-my-zsh"]],
|
2020-09-20 05:22:17 +00:00
|
|
|
force => true,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
file {"${user_home}/.oh-my-zsh/custom/plugins/notmuch":
|
|
|
|
|
ensure => 'link',
|
|
|
|
|
owner => $user,
|
|
|
|
|
target => find_file('core/oh-my-zsh/plugins/notmuch'),
|
2021-07-18 12:57:04 +00:00
|
|
|
require => [Vcsrepo["${user_home}/.oh-my-zsh"]],
|
2020-09-20 05:22:17 +00:00
|
|
|
force => true,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
vcsrepo { "${user_home}/.oh-my-zsh/custom/plugins/zsh-autosuggestions":
|
2022-06-12 19:44:21 +00:00
|
|
|
source => 'https://github.com/zsh-users/zsh-autosuggestions',
|
2020-09-20 05:22:17 +00:00
|
|
|
provider => 'git',
|
|
|
|
|
user => $user,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
vcsrepo { "${user_home}/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting":
|
2022-06-12 19:44:21 +00:00
|
|
|
source => 'https://github.com/zsh-users/zsh-syntax-highlighting.git',
|
2020-09-20 05:22:17 +00:00
|
|
|
provider => 'git',
|
|
|
|
|
user => $user,
|
|
|
|
|
}
|
|
|
|
|
}
|