Skip to content

Instantly share code, notes, and snippets.

@pironic
Last active January 17, 2018 09:54
Show Gist options
  • Save pironic/4725825 to your computer and use it in GitHub Desktop.
Save pironic/4725825 to your computer and use it in GitHub Desktop.
# ~/.tmux.conf
# window numbering index
set -g base-index 1
# pane numbering index
setw -g pane-base-index 1
set -g display-time 2500
#set -g detach-on-destroy off
# ----------------------------
#
# keybindings
#
## reload ~/.tmux.conf
bind r source-file ~/.tmux.conf; display "config reloaded"
# binding 0 to select the tenth window
unbind 0
bind 0 select-window -t :10
# use gnu screen style bindings
unbind-key C-b
set-option -g prefix C-a
bind a send-prefix
bind C-z send-prefix
bind C-a last-window
bind C-D choose-client
bind C-s choose-session
bind | split-window -h
bind - split-window -v
bind-key C-s command-prompt -p ssh: "new-window -n %1 'ssh %1'"
bind-key N command-prompt -p "new session name:" "new-session -s '%1'"
# ----------------------------
#
# status bar
#
# number specified colors are matched from vim-powerline's default color set
## status bar base colors
set -g status-fg green
set -g status-bg colour235 # grey
## window list colors
setw -g window-status-fg green
setw -g window-status-bg default
setw -g window-status-attr default
## current window colors
setw -g window-status-current-fg white
setw -g window-status-current-bg red
setw -g window-status-current-attr bright
## pane border colors
set -g pane-border-fg colour235
set -g pane-border-bg black
set -g pane-active-border-fg colour235
set -g pane-active-border-bg black
## command prompt colors
set -g message-fg black
set -g message-bg yellow
set -g message-attr bright
## left status
set -g status-left "[#[fg=cyan]#H:#S#[fg=default]]"
set -g status-left-length 20
## right status
set -g status-right "#[fg=white] %a %b %d '%y #[bg=blue] %I:%M %p "
## utf-8
set -g status-utf8 on
## window list justification
set -g status-justify left
## statusbar update interval
set -g status-interval 30
## activity in other windows
setw -g monitor-activity on
set -g visual-activity on
## sensible automatic window renaming
setw -g automatic-rename on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment