supabase-postgres.git / summary / log / commit / refs
commit df5556412f26d0c95eeaa24ea80385e087bb6d01
Author: Douglas J Hunley <doug.hunley@gmail.com>
Commit: GitHub <noreply@github.com>
Date: Wed Apr 29 17:41:59 2026 +0000
revert: do not autospawn tmux on login (#2126)
* revert: do not autospawn tmux on login
* fix: adjust the timeout for tmux
ansible/files/tmux.conf.j2 | 3 ---
ansible/tasks/setup-tmux.yml | 13 ++++++-------
2 files changed, 6 insertions(+), 10 deletions(-)
diff --git a/ansible/files/tmux.conf.j2 b/ansible/files/tmux.conf.j2
index 1711feeb..6becfb5f 100644
--- a/ansible/files/tmux.conf.j2
+++ b/ansible/files/tmux.conf.j2
@@ -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
diff --git a/ansible/tasks/setup-tmux.yml b/ansible/tasks/setup-tmux.yml
index 1172399c..93b69ff7 100644
--- a/ansible/tasks/setup-tmux.yml
+++ b/ansible/tasks/setup-tmux.yml
@@ -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'
@@ -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'
[parent: 6e1eef6da636]