Last active
June 2, 2016 23:45
-
-
Save jsdt/9f4357e4b922d5a5243b to your computer and use it in GitHub Desktop.
Tmux conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To reload this conf, run: | |
# :source-file ~/.tmux.conf | |
# or | |
# $ tmux source-file ~/.tmux.conf | |
# | |
# To sync panes: | |
# :setw synchronize-panes | |
# this can be followed by on/off | |
set-option -g default-shell /usr/bin/zsh | |
set -g base-index 1 | |
set -g pane-base-index 1 | |
set-window-option -g mode-keys vi | |
bind-key -t vi-copy 'v' begin-selection | |
bind-key -t vi-copy 'y' copy-selection | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
unbind C-b | |
bind-key C-a send-prefix | |
set -g prefix C-a | |
setw -g aggressive-resize on | |
unbind r | |
bind r source-file ~/.tmux.conf \; display "Reloaded!" | |
# This will only work on linux with xclip installed. | |
bind C-c run "tmux save-buffer - | xclip -i -sel clipboard > /dev/null" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment