3 ms·
I, for one, love tmux. But I hate it with the stock settings on a fresh machine. Having to use keyboard shortcuts to switch between windows is especially annoyi
by eigenvalue 2y ago
I, for one, love tmux. But I hate it with the stock settings on a fresh machine. Having to use keyboard shortcuts to switch between windows is especially annoying. I have this in an ansible playbook I run on all new machines to set tmux up nicely (I also use ohmyzsh and atuin, but that’s another story):
- name: Install custom tmux configuration
become: yes
become_user: ubuntu
git:
repo: https://github.com/gpakosz/.tmux.git
dest: /home/ubuntu/.tmux/
- name: Set up custom tmux configuration
become: yes
become_user: ubuntu
shell: |
cd /home/ubuntu/
ln -s -f .tmux/.tmux.conf
cp .tmux/.tmux.conf.local .
- name: Set up further tmux customizations
become: yes
become_user: ubuntu
blockinfile:
path: "/home/ubuntu/.tmux.conf.local"
insertafter: "# EOF"
block: |
set-option -g default-shell $SHELL
set -g mouse on
set-option -g history-limit 25000
set -g @plugin 'tmux-plugins/tmux-resurrect'