Skip to content

Instantly share code, notes, and snippets.

@imZack
Forked from josephj/.tmux.conf
Last active January 23, 2026 05:33
Show Gist options
  • Select an option

  • Save imZack/7701352 to your computer and use it in GitHub Desktop.

Select an option

Save imZack/7701352 to your computer and use it in GitHub Desktop.
# General configuration.
set -g base-index 1
set -g display-time 5000
set -g repeat-time 1000
set -g status-keys vi
set -g status-justify left
set -g status-interval 1
set -g status-left-length 15
set -g status-right-length 55
set -g status-style bg=black,fg=white
set -g status-left "#[fg=white,bright,bg=blue] Session #[fg=yellow,bright,bg=blue]#S #[default] |"
set -g status-right "#[default] #[fg=yellow,bright] %Y-%m-%d #[fg=green]%H:%M:%S #[default]#[fg=magenta,bright]#[default]#[fg=white,bright,bg=black]#H#[default]"
# Modern additions
set -g mouse on
set -g default-terminal "tmux-256color"
set -g history-limit 50000
# Window status configuration.
setw -g window-status-format " #I$ #W "
setw -g window-status-current-format " #I$ #W "
setw -g window-status-current-style bg=yellow,fg=blue
# Key bindings - Ctrl+A prefix (like screen)
unbind C-b
set -g prefix ^A
bind a send-prefix
# Split windows with v/| (horizontal) and h/- (vertical)
unbind %
unbind '"'
bind v split-window -h
bind | split-window -h
bind h split-window -v
bind - split-window -v
# Rename window
unbind ','
bind ` command-prompt -I '#W' "rename-window '%%'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment