diff --git a/roles/tmux/files/sessions.conf b/roles/tmux/files/sessions.conf new file mode 100644 index 0000000..fc38103 --- /dev/null +++ b/roles/tmux/files/sessions.conf @@ -0,0 +1,18 @@ +$ANSIBLE_VAULT;1.1;AES256 +38643037303163646235623338363133653235316364666266613733356434613637633861613761 +3437313463336163333363346439653835636339326364630a376137373731663734326230393934 +38353263306137393466363833656464366265303734343461383633653639316165663663633938 +3431306530663365360a633135343332386633326366653535323534656665653265663766613934 +62613337383537666531353932643637363264343665306338323365393665623337653635663731 +34326632313637343335343566653530313666343131313137616566643061393465653662326563 +37336264373837386237346232336662326664646430633236666465356537303062363035393934 +63383937386566333334396332313562363535623332366663633661666262663763373261373939 +63323862666439303032343736666136396634333262363131306631313737396364383538643137 +32653039396531303832333737626661663132376162336537626163323830316263373662323565 +64383533653462653532653964373832666132356331376237656662336532356230336662623065 +32663535373562396431356534396363633137323262623164636330316336393261663766333737 +33633333386534656336356436333938623863663565346430323533633063373436333533366266 +37346638383865396530366135363265326166313366353062663563306635373264336365643066 +62613532653262613933313033623164636131626534336363336630346361663566393834613362 +62616263626436393733333935633733353765626362383863633031653262393731366437626537 +6636 diff --git a/roles/tmux/files/tmux.conf b/roles/tmux/files/tmux.conf index 86122f1..33a7696 100644 --- a/roles/tmux/files/tmux.conf +++ b/roles/tmux/files/tmux.conf @@ -54,3 +54,5 @@ bind-key -r L resize-pane -R 5 # fuzzy switch to session unbind-key s bind-key s run-shell -b "tmux switch-client -t $(tmux list-sessions | awk -F: '{print $1}' | fzf-tmux -p | tr -d '\n')" + +source-file ~/.tmux/sessions.conf diff --git a/roles/tmux/tasks/main.yml b/roles/tmux/tasks/main.yml index 5b9384b..743423b 100644 --- a/roles/tmux/tasks/main.yml +++ b/roles/tmux/tasks/main.yml @@ -13,14 +13,14 @@ - tmux when: ansible_facts['distribution'] == 'Debian' -- name: Copy tmux config - copy: - src: tmux.conf - dest: ~/.tmux.conf - mode: 0644 - - name: Create tmux directory file: path: ~/.tmux state: directory mode: 0755 + +- name: Copy tmux configs + copy: src={{ item.src }} dest={{ item.dest }} mode=0644 + with_items: + - {src: 'tmux.conf', dest: '~/.tmux.conf'} + - {src: 'sessions.conf', dest: '~/.tmux/sessions.conf'}