Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions ansible/files/tmux.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D

# Enable mouse control (clickable windows, panes, resizable panes)
set -g mouse on

# DESIGN TWEAKS

# don't do anything when a 'bell' rings
Expand Down
13 changes: 6 additions & 7 deletions ansible/tasks/setup-tmux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
update_cache: true
become: true

- name: tmux - Configure shell auto-logout
- name: tmux - Configure tmux alias
ansible.builtin.copy:
content: |
case "$-" in
*i*) export TMOUT=600 ;;
*i*) alias tmux='tmux new-session -A -s supa' ;;
esac
dest: '/etc/profile.d/11-shell_timeout.sh'
dest: '/etc/profile.d/11-tmux_alias.sh'
group: 'root'
mode: '0644'
owner: 'root'
Expand All @@ -26,18 +26,17 @@
src: 'files/tmux.conf.j2'
become: true

- name: tmux - Auto-launch tmux as needed
- name: tmux - Auto-logout from stale tmux
ansible.builtin.copy:
content: |
case "$-" in
*i*)
case "$TERM" in
tmux*) ;;
*) tmux new-session -A -s supa ;;
tmux*) export TMOUT=86400 ;;
esac
;;
esac
dest: '/etc/profile.d/12-tmux.sh'
dest: '/etc/profile.d/12-tmux_logout.sh'
group: 'root'
mode: '0644'
owner: 'root'
Expand Down
Loading