dotfiles/roles/tmux/tasks/main.yml
Fernando Schauenburg 6b4f2ecf85 fix(tmux): changing background was ignored by tmux
When moving the configuration files to $XDG_CONFIG_HOME I forgot to
change the line in .bashrc that sources the tmux configuration so bash
was still trying to source ~/.tmux.conf, which no longer exists.

This commit fixes that. Additionally, the color setting code has been
factored out of tmux.conf into tmux-colors.conf (which can be sourced
from bash profile and tmux.conf). This way the rest of the code in
tmux.conf doesn't have to be executed again when changing the background
color.
2020-12-04 18:15:41 +01:00

23 lines
540 B
YAML

- name: Install tmux (Debian)
when: ansible_os_family == "Debian"
become: yes
apt: name=tmux state=latest update_cache=yes
- name: Install tmux (macOS)
when: ansible_os_family == "Darwin"
homebrew: name=tmux state=latest
- name: Create the tmux config directory
file:
path: ~/.config/tmux
state: directory
- name: Deploy tmux config
file:
src: "{{ role_path }}/files/{{ item }}"
dest: "~/.config/tmux/{{ item }}"
state: link
force: yes
loop:
- tmux.conf
- tmux-colors.conf