From 84198876b37a1b173bfdeab8331394c0b1611d00 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 14 Aug 2018 08:38:26 +0100 Subject: [PATCH] Add basic tmux config --- manifests/packages.pp | 1 + modules/shell/files/tmux.conf | 6 ++++++ modules/shell/manifests/init.pp | 9 +++++++++ 3 files changed, 16 insertions(+) create mode 100644 modules/shell/files/tmux.conf diff --git a/manifests/packages.pp b/manifests/packages.pp index b772b1e..6d5522f 100644 --- a/manifests/packages.pp +++ b/manifests/packages.pp @@ -126,6 +126,7 @@ node default { 'thefuck', 'thunderbird', 'tig', + 'tmux', 'tor-browser-en', 'ttf-emojione', 'ttf-fira-code', diff --git a/modules/shell/files/tmux.conf b/modules/shell/files/tmux.conf new file mode 100644 index 0000000..0e63b1f --- /dev/null +++ b/modules/shell/files/tmux.conf @@ -0,0 +1,6 @@ +set -g mouse on +setw -g mode-keys vi +set -g history-limit 1000 +set -g terminal-overrides 'xterm*:smcup@:rmcup@' +set-window-option -g mouse on +set-window-option -g mode-keys vi diff --git a/modules/shell/manifests/init.pp b/modules/shell/manifests/init.pp index 7aebe67..23ae4a2 100644 --- a/modules/shell/manifests/init.pp +++ b/modules/shell/manifests/init.pp @@ -58,4 +58,13 @@ class shell { source => 'puppet:///modules/shell/global-environment', path => '/etc/environment' } + + file { 'tmux config': + ensure => file, + owner => 'jake', + group => 'users', + mode => '0755', + source => 'puppet:///modules/shell/tmux.conf', + path => '/home/jake/.tmux.conf' + } }