For the developers interested in turbocharging their terminal workflows without taking days or weeks of time to get started, I give you my Tmux starter.
Tmux starter is simple: it is a set of instructions and a basic, no-frills Tmux configuration file that will get you up and running with an ergonomic version of Tmux in no time at all!
- Tmux (>=3.5)
- Linux, macOS (maybe WSL–I don't have a Windows device to confirm)
- Clone this repository to your local machine
git clone git@github.com:alexandersix/tmux-starter.git- (optional) Back up your exiting
~/.tmux.conffile
mv ~/.tmux.conf ~/.tmux.conf.bak- Symlink or copy the
.tmux.conffile to your home directory
# Symlinking keeps the file up to date with new versions
ln -s /PATH/TO/FILE/tmux-starter/.tmux.conf /PATH/TO/HOME
# Copying moves the file but does NOT automatically keep it up to date
mv /PATH/TO/FILE/tmux-starter/.tmux.conf /PATH/TO/HOME
- Restart & run
tmux, and enjoy the configuration!
- Disallow automatic window renaming
- Start windows at index 1 instead of 0
- Increase tmux history limit
- Increase display time for tmux messages
- Set up "aggressive resizing" (a tmux session will always resize to match the smallest client currently connected to it)
- Allow mouse usage
- Update color profile to work with Vim/Nvim background colors
- Remove Vim switching delay
Prefix r: reload tmux configurationCtrl+{h,j,k,l}: move panesCtrl+{H, J, K, L}: resize current panePrefix \: split verticallyPrefix -: split horizontally- Pane navigation with awareness of Vim splits (thank you to Chris Toomey for this one! - vim-tmux-navigator)
- Arrow keys for pane navigation
Prefix %andPrefix "for pane splitting
As of v0.2.0, you can now more easily override and/or extend the existing defaults from tmux-starter.
You can do this by creating a custom ~/.tmux/overrides.conf file and adding any settings and
keybindings you would like to it. No more needing to stash your customizations before updating!
Create this file using the following command:
mkdir -p ~/.tmux && echo "# Place overrides here" > ~/.tmux/overrides.conf