Skip to main content

Tmux

sudo pacman -S tmux

This is my config file, located at $HOME/.config/tmux/tmux.conf or just at ~/.tmux.conf.

# set the default shell to zsh
set-option -g default-shell /usr/bin/zsh

# better terminal colors
set -g default-terminal "screen-256color"

# enables mouse
setw -g mouse on

# Allow xterm titles in terminal window, terminal scrolling with scrollbar, and setting overrides of C-Up, C-Down, C-Left, C-Right
set -g terminal-overrides "xterm*:XT:smcup@:rmcup@:kUP5=\eOA:kDN5=\eOB:kLFT5=\eOD:kRIT5=\eOC"

# Scroll History
set -g history-limit 10000

# Set ability to capture on start and restore on exit window data when running an application
setw -g alternate-screen on

# Lower escape timing from 500ms to 50ms for quicker response to scroll-buffer access.
set -s escape-time 50

# automatic rename windows, this is done in zsh
set-option -g automatic-rename off

Do you want a cheat sheet? https://tmuxcheatsheet.com is a great website.