The minimal tmux config
linux
Published: 2023-03-16

Every now and then, I jump into some server and I need our lord and saviour tmux there. But default tmux key bindings suck. I do not need all the bells and whistles I have in my local machine in the server but the following is something I would want to set before doing anything.

  • Usage is just paste this into ~/.tmux.conf in the server and reload tmux and you’ll be good to go.
  • I have my local tmux prefix set to C-a as-well, so I just have to hit C-a twice to send the signal to the server.(I don’t exactly understand how it works but it works)
# prefix: C-a
unbind C-b
set -g prefix C-a
# split panes using | and -
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
unbind '"'
unbind %