Skip to content

Instantly share code, notes, and snippets.

@gzmask
Last active June 14, 2017 18:08
Show Gist options
  • Save gzmask/b4a3f45d28462bd9c08c471096de93fd to your computer and use it in GitHub Desktop.
Save gzmask/b4a3f45d28462bd9c08c471096de93fd to your computer and use it in GitHub Desktop.
.tmux.conf
set -g base-index 1
set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
set -g mouse on
set -sg escape-time 0
setw -g mode-keys vi
setw -g monitor-activity on
unbind-key j
unbind-key k
unbind-key h
unbind-key l
unbind-key J
unbind-key K
unbind-key H
unbind-key L
bind-key v split-window -h
bind-key s split-window -v
bind-key j select-pane -D
bind-key k select-pane -U
bind-key h select-pane -L
bind-key l select-pane -R
bind-key J resize-pane -D 5
bind-key K resize-pane -U 5
bind-key H resize-pane -L 5
bind-key L resize-pane -R 5
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
# Shift arrow to swap panes
bind S-Left swap-pane -U
bind S-Left swap-pane -D
#copy paste fix, Setup 'v' to begin selection as in Vim
set-option -g default-command "reattach-to-user-namespace -l bash"
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-pipe "reattach-to-user-namespace pbcopy"
# THEME
set -g status-bg black
set -g status-fg white
set -g window-status-current-bg white
set -g window-status-current-fg black
set -g window-status-current-attr bold
set -g status-interval 60
set -g status-left-length 30
set -g status-left '#[fg=green](#S) #(whoami)'
set -g status-right '#[fg=yellow]#(cut -d " " -f 1-3 /proc/loadavg)#[default] #[fg=white]%H:%M#[default]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment