Skip to content

Instantly share code, notes, and snippets.

@sharipov-ru
Created February 12, 2013 05:07
Show Gist options
  • Save sharipov-ru/4760372 to your computer and use it in GitHub Desktop.
Save sharipov-ru/4760372 to your computer and use it in GitHub Desktop.
# change default PREFIX binding
set -g prefix C-w
unbind C-b
set -sg escape-time 1
set -g base-index 1
set -g pane-base-index 1
bind r source-file ~/.tmux.conf \; display "Reloaded!"
bind C-a send-prefix
# change window splitting bindings
bind - split-window -v
bind | split-window -h
# vim-like pane selection
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# use 256 colors pallete
set -g default-terminal 'screen-256color'
# visual selection tweaks
unbind [
bind v copy-mode
# unbind p
# bind p paste-buffer
bind -t vi-copy 'v' begin-selection
bind -t vi-copy 'y' copy-selection
# # status bar
setw -g status-fg colour110
setw -g status-bg black
set -g status-left-length 300
set -g status-right "%d %b | %R"
# window activity monitoring
# setw -g monitor-activity on
# inactive window in status bar
setw -g window-status-fg cyan
setw -g window-status-bg default
setw -g window-status-attr dim
# active window in status bar
setw -g window-status-current-fg white
setw -g window-status-current-bg magenta
setw -g window-status-current-attr bright
# powerline statusbar:
# set-option -g status on
# set-option -g status-interval 2
# set-option -g status-utf8 on
# set-option -g status-justify "centre"
# set-option -g status-left-length 60
# set-option -g status-right-length 90
# set-option -g status-left "#(~/poligon/source/tmux-powerline/powerline.sh left)"
# set-option -g status-right "#(~/poligon/source/tmux-powerline/powerline.sh right)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment