From 831bcda27be9ded419ad77df320fe3cba2516535 Mon Sep 17 00:00:00 2001 From: eoli3n Date: Fri, 30 Sep 2022 12:25:34 +0200 Subject: [PATCH] tmux config --- install.yml | 2 ++ roles/tmux/tasks/main.yml | 9 +++++++++ roles/tmux/templates/tmux.conf.j2 | 2 ++ 3 files changed, 13 insertions(+) create mode 100644 roles/tmux/tasks/main.yml create mode 100644 roles/tmux/templates/tmux.conf.j2 diff --git a/install.yml b/install.yml index e18d122..eb7e3d4 100644 --- a/install.yml +++ b/install.yml @@ -16,6 +16,8 @@ tags: neovim - role: screen tags: screen + - role: tmux + tags: tmux - role: git tags: git,cli - role: ssh diff --git a/roles/tmux/tasks/main.yml b/roles/tmux/tasks/main.yml new file mode 100644 index 0000000..b7b63f1 --- /dev/null +++ b/roles/tmux/tasks/main.yml @@ -0,0 +1,9 @@ +--- +- name: install powerline-status with pip + pip: + name: powerline-status + +- name: configure tmux + template: + src: tmux.conf.j2 + dest: ~/.tmux.conf diff --git a/roles/tmux/templates/tmux.conf.j2 b/roles/tmux/templates/tmux.conf.j2 new file mode 100644 index 0000000..7a5e40a --- /dev/null +++ b/roles/tmux/templates/tmux.conf.j2 @@ -0,0 +1,2 @@ +source ~/.local/lib/python{{ ansible_python_version | splitext | first }}/site-packages/powerline/bindings/tmux/powerline.conf +set-option -g default-terminal "screen-256color"