Last active
August 29, 2015 14:20
-
-
Save Nagasaki45/adc7db636dbe7e160b58 to your computer and use it in GitHub Desktop.
My .tmux.config
This file contains hidden or 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
# Set prefix key to Ctrl-a | |
set -g prefix C-a | |
# Set vi mode | |
set-window-option -g mode-keys vi | |
setw -g mode-keys vi | |
# Send C-a to apps when presses twice | |
bind C-a send-prefix | |
# Start window & pane numbering from 1 | |
set -g base-index 1 | |
setw -g pane-base-index 1 | |
# Reload config | |
bind r source-file ~/.tmux.conf \; display "tmux.conf Reloaded!" | |
# Saner split window bindings | |
bind | split-window -h | |
bind _ split-window -v | |
# Window movement | |
bind b previous-window | |
# Vim like pane movement | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# Resizing panes | |
bind -r < resize-pane -L 2 | |
bind -r > resize-pane -R 2 | |
bind -r - resize-pane -D 2 | |
bind -r + resize-pane -U 2 | |
# Enable mouse mode | |
setw -g mode-mouse off | |
set -g mouse-select-pane on | |
set -g mouse-resize-pane on | |
set -g mouse-select-window on | |
# Set default terminal to 256 colors | |
set -g default-terminal "screen-256color" | |
setw -g utf8 on | |
set -g status-utf8 on | |
# copy paste | |
bind C-y run "tmux show-buffer | xclip -selection clipboard -i >/dev/null" | |
bind C-p run "tmux set-buffer \"$(xclip -o)\"; tmux paste-buffer" | |
# scroll back buffer | |
set -g history-limit 5000 | |
# renumber windows after closing | |
set-option -g renumber-windows on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment