Skip to content

Instantly share code, notes, and snippets.

@ce-manalang
Forked from ramontayag/gist:5079630
Created June 9, 2014 09:28
Show Gist options
  • Save ce-manalang/26281d7fa2c42db9786c to your computer and use it in GitHub Desktop.
Save ce-manalang/26281d7fa2c42db9786c to your computer and use it in GitHub Desktop.
# Make it use C-a, similar to screen..
unbind C-b
unbind l
set -g prefix C-a
bind-key C-a last-window
# Reload key
bind r source-file ~/.tmux.conf
set -g default-terminal "screen-256color"
set -g history-limit 1000
# Mouse scroll
set -g mode-mouse on
# THEME
set -g status-bg black
set -g status-fg white
set -g status-interval 60
set -g status-left-length 30
set -g status-left '#[fg=green](#S) #(whoami)@#H#[default]'
set -g status-right '#[fg=yellow]#(cut -d " " -f 1-3 /proc/loadavg)#[default] #[fg=blue]%H:%M#[default]'
# set correct term
set -g default-terminal screen-256color
# Fix copy and paste
# http://jasonwryan.com/blog/2011/06/07/copy-and-paste-in-tmux/
setw -g mode-keys vi
unbind [
bind Escape copy-mode
unbind p
bind p paste-buffer
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
# Screen-like binding for last window
unbind l
bind C-a last-window
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment