Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@laapsaap
Last active February 5, 2023 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laapsaap/a4b55b96c7dc3267b1be76bffedc9c16 to your computer and use it in GitHub Desktop.
Save laapsaap/a4b55b96c7dc3267b1be76bffedc9c16 to your computer and use it in GitHub Desktop.
tmux config
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
setw -g mode-keys vi
setw -g mouse on
setw -g monitor-activity on
bind-key \\ split-window -h
bind-key - split-window -v
# Use Alt-arrow keys without prefix key to switch panes
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# No delay for escape key press in ms (bug when put on 0ms)
set -sg escape-time 10
# Reload tmux config
bind r source-file ~/.tmux.conf
# C-b is not acceptable -- Vim uses it
set-option -g prefix C-q
bind-key C-q last-window
# Allows us to use C-q q <command> to send commands to a TMUX session inside another TMUX session
bind-key q send-prefix
# THEME
#### COLOUR (Solarized dark)
# default statusbar colors
set-option -g status-style fg=yellow,bg=black
# default window title colors
set-window-option -g window-status-style fg=brightblue,bg=default
# active window title colors
set-window-option -g window-status-current-style fg=brightred,bg=default
# pane border
set-option -g pane-border-style fg=white
set-option -g pane-active-border-style fg=brightred
# message text
set-option -g message-style fg=brightred,bg=black
# pane number display
set-option -g display-panes-active-colour brightred
set-option -g display-panes-colour blue
# clock
set-window-option -g clock-mode-colour green
# bell
set-window-option -g window-status-bell-style fg=black,bg=red
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment