Skip to content

Instantly share code, notes, and snippets.

@naranyala
Created July 8, 2025 10:02
Show Gist options
  • Save naranyala/530dfcbb1639209232a8f2e7411e14ee to your computer and use it in GitHub Desktop.
Save naranyala/530dfcbb1639209232a8f2e7411e14ee to your computer and use it in GitHub Desktop.
easy tmux config
# --- Prefix Key ---
unbind C-b
set-option -g prefix C-Space
set-option -g status-position top
bind C-Space send-prefix
# --- Window Index Starts at 1 ---
set -g base-index 1
setw -g pane-base-index 1
# --- Custom Window Format ---
set-window-option -g window-status-format " #I:#W "
set-window-option -g window-status-current-format " #I:#W* "
# --- Status Bar Tweaks ---
# set -g status-style "bg=#39FF14,fg=black"
set -g status-bg white
set -g status-fg black
set -g status-left " #[bold][TMUX] "
set -g status-right " #[bold]%Y-%m-%d %H:%M #[bold][#H] "
# --- Quick Reload Config ---
bind r source-file ~/.tmux.conf \; display-message "Config reloaded!"
# --- Easier Pane Splitting ---
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
# --- Faster Window Switching ---
bind -n C-Left previous-window
bind -n C-Right next-window
# --- Smart Pane Navigation ---
bind -n C-h select-pane -L
bind -n C-j select-pane -D
bind -n C-k select-pane -U
bind -n C-l select-pane -R
# --- Resize Panes ---
bind -r < resize-pane -L 5
bind -r > resize-pane -R 5
bind -r + resize-pane -U 5
bind -r - resize-pane -D 5
# --- Enable Mouse Support ---
set-option -g mouse on
# --- More History Scrollback ---
set -g history-limit 10000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment