Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: a76376d64f
Fetching contributors…

Cannot retrieve contributors at this time

67 lines (52 sloc) 1.815 kb
# Make it use C-l, similar to how I use screen
unbind C-b
unbind l
set -g prefix C-l
bind-key C-l last-window
# Reload key
bind r source-file ~/.tmux.conf
set -g default-terminal "screen-256color"
set -g history-limit 9999999
# history navigation like vim
set-window-option -g mode-keys vi
# Set status bar
set -g status-bg black
set -g status-fg white
# set -g status-left '#[fg=green]#H'
# Highlight active window
set-window-option -g window-status-current-bg red
# Use the mouse
#set-option -g mouse-select-pane on
# use "v" and "s" to do vertical/horizontal splits, like vim
bind s split-window -v
bind v split-window -h
# use the vim motion keys to move between panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# use the vim resize keys.
bind -r < resize-pane -L 5
bind -r > resize-pane -R 5
# resize up and down too
unbind S-Left
unbind S-Right
unbind S-Down
unbind S-Up
bind -r S-Left resize-pane -L 5
bind -r S-Right resize-pane -R 5
bind -r S-Up resize-pane -U 5
bind -r S-Down resize-pane -D 5
# probably won't use this since I don't use multiple sessions
bind S choose-session
# window rename like screen
bind A command-prompt "rename-window '%%'"
# Join the first pane from window x
bind J command-prompt "join-pane -s '%%'.0"
bind @ break-pane -d
# Fix pbcopy and pbpaste.
# See:
set-option -g default-command "[ -e ~/bin/reattach-to-user-namespace ] && reattach-to-user-namespace -l zsh || exec zsh"
bind - run-shell "reattach-to-user-namespace -l zsh -c 'tmux show-buffer | pbcopy'"
bind + run-shell "reattach-to-user-namespace -l zsh -c 'tmux set-buffer \"$(pbpaste)\"; tmux paste-buffer'"
Jump to Line
Something went wrong with that request. Please try again.