Skip to content

Instantly share code, notes, and snippets.

@grapeot
Created February 28, 2014 18:09
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 grapeot/9276405 to your computer and use it in GitHub Desktop.
Save grapeot/9276405 to your computer and use it in GitHub Desktop.
set -g default-terminal "screen-256color"
set -g status-right '#[fg=black] #(hostname), %H:%M, #(uptime | egrep -o "average.*"|perl -pe "s|average: ||")'
setw -g automatic-rename
# mouse mode
set -g mode-mouse on
setw -g mouse-select-window on
setw -g mouse-select-pane on
setw -g mode-keys vi
# key bindings
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
unbind [
bind ` copy-mode
unbind p
bind p paste-buffer
bind -t vi-copy v begin-selection
bind -t vi-copy y copy-selection
unbind %
bind | split-window -h
bind - split-window -v
# Mac only
# set -g status-right '#[fg=black] #(hostname), %H:%M, #(uptime | grep -o "averages:.*" | sed "s/averages: //")'
# set-option -g default-command "reattach-to-user-namespace -l zsh"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment