File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,9 +18,6 @@ bind -n M-Right select-pane -R
1818bind -n M-Up select-pane -U
1919bind -n M-Down select-pane -D
2020
21- # Enable mouse control (clickable windows, panes, resizable panes)
22- set -g mouse on
23-
2421# DESIGN TWEAKS
2522
2623# don't do anything when a 'bell' rings
Original file line number Diff line number Diff line change 55 update_cache : true
66 become : true
77
8- - name : tmux - Configure shell auto-logout
8+ - name : tmux - Configure tmux alias
99 ansible.builtin.copy :
1010 content : |
1111 case "$-" in
12- *i*) export TMOUT=600 ;;
12+ *i*) alias tmux='tmux new-session -A -s supa' ;;
1313 esac
14- dest : ' /etc/profile.d/11-shell_timeout .sh'
14+ dest : ' /etc/profile.d/11-tmux_alias .sh'
1515 group : ' root'
1616 mode : ' 0644'
1717 owner : ' root'
2626 src : ' files/tmux.conf.j2'
2727 become : true
2828
29- - name : tmux - Auto-launch tmux as needed
29+ - name : tmux - Auto-logout from stale tmux
3030 ansible.builtin.copy :
3131 content : |
3232 case "$-" in
3333 *i*)
3434 case "$TERM" in
35- tmux*) ;;
36- *) tmux new-session -A -s supa ;;
35+ tmux*) export TMOUT=86400 ;;
3736 esac
3837 ;;
3938 esac
40- dest : ' /etc/profile.d/12-tmux .sh'
39+ dest : ' /etc/profile.d/12-tmux_logout .sh'
4140 group : ' root'
4241 mode : ' 0644'
4342 owner : ' root'
You can’t perform that action at this time.
0 commit comments