Created
July 11, 2012 06:14
-
-
Save retr0h/3088316 to your computer and use it in GitHub Desktop.
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
# screen like C-a vs C-b | |
unbind-key C-b | |
set-option -g prefix C-a | |
# screen like C-a a vs C-b l | |
bind-key C-a last-window | |
bind a send-prefix | |
# large history | |
set-option -g history-limit 100000 | |
# automatically set window title | |
set -g set-titles on | |
#set -g set-titles-string '#S:#I.#P #W' | |
#setw -g automatic-rename | |
# window splitting | |
unbind % | |
bind | split-window -h | |
bind - split-window -v | |
# pane movement | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# pane resizing | |
bind -r H resize-pane -L 5 | |
bind -r J resize-pane -D 5 | |
bind -r K resize-pane -U 5 | |
bind -r L resize-pane -R 5 | |
# window movement | |
bind -r C-h select-window -t :- | |
bind -r C-l select-window -t :+ | |
# default terminal | |
set -g default-terminal "screen-256color" | |
# terminal locking - apt-get install vlock | |
set -g lock-command vlock | |
unbind ^X | |
bind ^X lock-server | |
unbind x | |
bind x lock-server | |
set -g lock-after-time 1200 | |
# kill K k | |
unbind K | |
bind K confirm-before "kill-window" | |
unbind k | |
bind k confirm-before "kill-window" | |
# 0 is too far from 1 | |
set -g base-index 1 | |
# notify when other windows have activity | |
setw -g monitor-activity on | |
set -g visual-activity on | |
# vi keybindigs | |
setw -g mode-keys vi | |
# for vim | |
setw -g xterm-keys on | |
# ssh | |
bind-key S command-prompt "new-window -n %1 'ssh %1'" | |
# `+r reloads the configuration, handy | |
#bind r source-file ~/.tmux.conf | |
bind r source-file ~/.tmux.conf \; display-message "Configuration reloaded." | |
# colours | |
source ~/.tmux.conf.colours | |
# copy/paste | |
unbind [ | |
bind Escape copy-mode | |
unbind p | |
bind p paste-buffer | |
bind -t vi-copy 'v' begin-selection | |
bind -t vi-copy 'y' copy-selection | |
# defaut shell | |
set -g default-command /bin/zsh | |
set -g default-shell /bin/zsh | |
# create an environment that zsh can make sense of | |
set-environment -g INSCREEN yes | |
set-environment TMUX_TITLE yes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment