Dotfiles/site-modules/core/manifests/tmux.pp
Ade Attwood 80239af169 refactor(core): start to make dotfiles public
This is the first commit that brings the privet dotfiles to a public
reop previously this was all one puppet module. Now this has been split
out so I can put all of the private files in a private puppet module
2020-09-20 06:22:17 +01:00

41 lines
1,010 B
Puppet

#
# Config for tmux terminal multiplexer
#
# Author Ade Attwood <code@adeattwood.co.uk>
# Updated 2018-07-16
#
class core::tmux {
exec { 'make tmux dir':
creates => "${user_home}/.tmux/plugins",
path => '/usr/bin:/usr/sbin:/bin',
command => "mkdir -p ${user_home}/.tmux/plugin",
}
file { "${user_home}/.tmux.conf":
ensure => 'link',
owner => $user,
target => find_file('core/tmux.conf'),
}
vcsrepo { "${user_home}/.tmux/plugins/tmux-yank":
ensure => latest,
source => 'git://github.com/tmux-plugins/tmux-yank.git',
provider => git,
revision => 'master',
}
vcsrepo { "${user_home}/.tmux/plugins/tmux-open":
ensure => latest,
source => 'git://github.com/tmux-plugins/tmux-open.git',
provider => git,
revision => 'master',
}
vcsrepo { "${user_home}/.tmux/plugins/tmux-copycat":
ensure => latest,
source => 'git://github.com/tmux-plugins/tmux-copycat.git',
provider => git,
revision => 'master',
}
}