tmux: Install tmux with screenish configuration

This commit is contained in:
Ossi Salmi 2013-10-21 12:05:29 +03:00
parent fa4bf186d9
commit 1bd67db2c6
2 changed files with 32 additions and 0 deletions

9
tmux/files/tmux.conf Normal file
View file

@ -0,0 +1,9 @@
set -g prefix C-a
set -g base-index 1
set -g status off
bind C-a send-prefix
bind C-l last-window
bind C-n next-window
bind C-p previous-window
bind C-@ next-window
bind Space next-window

23
tmux/manifests/init.pp Normal file
View file

@ -0,0 +1,23 @@
# Install tmux
#
class tmux {
if $::operatingsystem != "OpenBSD" {
package { "tmux":
ensure => installed,
before => File["/etc/tmux.conf"],
}
}
file { "/etc/tmux.conf":
ensure => present,
mode => "0644",
owner => "root",
group => $::operatingsystem ? {
"openbsd" => "wheel",
default => "root",
},
source => "puppet:///modules/tmux/tmux.conf",
}
}