feat: add tmux to base image and auto-launch it#2115
feat: add tmux to base image and auto-launch it#2115
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a standardized tmux setup to the Ansible-built base image, including global tmux configuration and shell profile hooks intended to enforce idle timeouts and auto-launch tmux for operators.
Changes:
- Introduces a new Ansible task file to install tmux and drop
/etc/profile.dscripts for TMOUT + tmux auto-start. - Adds a global
/etc/tmux.conftemplate to standardize keybindings and UI settings. - Wires the tmux setup tasks into the main
ansible/playbook.yml.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
ansible/tasks/setup-tmux.yml |
Installs tmux and deploys shell timeout + tmux auto-launch profile scripts plus tmux config. |
ansible/playbook.yml |
Imports the new tmux setup tasks into the main provisioning flow. |
ansible/files/tmux.conf.j2 |
Provides the global tmux configuration deployed to /etc/tmux.conf. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…-574 * 'INDATA-574' of github.com:supabase/postgres: Update ansible/tasks/setup-tmux.yml
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Overview
This pull request introduces a standardized
tmuxconfiguration and automated session management for the Supabase infrastructure. It aims to improve operator productivity through a persistent, feature-rich terminal environment while enhancing security via automated shell timeouts.Technical Changes
New Task:
tasks/setup-tmux.ymltmuxpackage viaapt./etc/profile.d/11-shell_timeout.sh(TMOUT=600)./etc/tmux.confto ensure a consistent environment for all users.tmuxvia/etc/profile.d/12-tmux.sh, ensuring persistence across accidental disconnections.New Template:
files/tmux.conf.j2Ctrl-b(default) andCtrl-a(common preference) for command invocation.|and-for vertical and horizontal splits, andAlt+Arrowkeys for seamless pane switching.Playbook Integration
playbook.yml, positioned after system tuning and before database setup.