Skip to content

Instantly share code, notes, and snippets.

@jmervine
Created November 21, 2014 18:54
Show Gist options
  • Save jmervine/769791dc3c3704da1f9e to your computer and use it in GitHub Desktop.
Save jmervine/769791dc3c3704da1f9e to your computer and use it in GitHub Desktop.
unbind A
bind A command-prompt "rename-window %%"
unbind %
bind | split-window -h
bind v split-window -h
unbind '"'
bind - split-window -v
bind _ split-window -v
bind h split-window -v
bind '"' choose-window
unbind e
bind e choose-window
unbind " "
bind -r " " next-window
# act like vim
setw -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
unbind Up
unbind Down
unbind Left
unbind Right
bind-key -r Up resize-pane -U 5
bind-key -r Down resize-pane -D 5
bind-key -r Left resize-pane -L 5
bind-key -r Right resize-pane -R 5
bind-key -r C-h select-window -t :-
bind-key -r C-l select-window -t :+
unbind C-d
bind C-d new-window -d -n tmux-zoom 'clear && echo TMUX ZOOM && read' \; swap-pane -s tmux-zoom.0 \; select-window -t tmux-zoom
unbind C-r
bind - last-window \; swap-pane -s tmux-zoom.0 \; kill-window -t tmux-zoom
unbind r
bind r source-file /etc/tmux.conf
# look good
set -g default-terminal "xterm"
set-option -g default-shell /bin/zsh
set-option -g default-command "/opt/local/bin/reattach-to-user-namespace /bin/zsh"
set -g base-index 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment