Created
January 26, 2015 00:15
-
-
Save cryptojuice/ae5fd526739522d59f69 to your computer and use it in GitHub Desktop.
.tmux.conf
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 -g default-terminal "screen-256color" | |
set -g history-limit 100000 | |
# use VI | |
set-window-option -g mode-keys vi | |
set -g mode-keys vi | |
# Use ctrl-e instead of ctrl-b | |
set -g prefix C-e | |
unbind C-b | |
bind C-e send-prefix | |
unbind C-f | |
bind C-f command-prompt "switch-client -t %%" | |
# kill | |
unbind k | |
bind k confirm-before "kill-window" | |
unbind ^x | |
bind ^x kill-pane | |
# reload config | |
unbind r | |
bind r source-file ~/.tmux.conf | |
unbind ^W | |
bind ^W split-window -p 25 'vim' \; swap-pane -D | |
unbind ^T | |
bind ^T split-window -p 25 | |
# tile all windows | |
unbind = | |
bind = select-layout tiled | |
# resize panes | |
unbind + | |
bind + new-window -d -n tmux-zoom 'clear && echo TMUX ZOOM && read' \; swap-pane -s tmux-zoom.0 \; select-window -t tmux-zoom | |
unbind - | |
bind - last-window \; swap-pane -s tmux-zoom.0 \; kill-window -t tmux-zoom | |
# status bar | |
set -g status-bg black | |
set -g status-fg white | |
set -g status-interval 1 | |
set -g status-left ' ' | |
set -g status-right '#[fg=yellow]%Y-%m-%d %H:%M#[default] ' | |
set-window-option -g window-status-current-bg yellow | |
set-window-option -g window-status-current-fg black | |
set -g mouse-select-pane on | |
set -g mouse-select-window on | |
set -g mouse-resize-pane on | |
set -g mode-mouse on | |
# Pane mappings (Will work with Mac only if option key is meta, see readme) | |
set -sg escape-time 0 | |
bind -n M-h select-pane -L | |
bind -n M-j select-pane -D | |
bind -n M-k select-pane -U | |
bind -n M-l select-pane -R | |
bind -n M-\ split-window -h | |
bind -n M-- split-window -v | |
bind-key -nr M-Up resize-pane -U | |
bind-key -nr M-Down resize-pane -D | |
bind-key -nr M-Left resize-pane -L | |
bind-key -nr M-Right resize-pane -R | |
bind-key -n M-PPage copy-mode -u | |
bind-key -n M-u copy-mode | |
bind-key -n M-i paste-buffer | |
bind-key -n M-d detach-client | |
bind-key -n M-8 choose-session | |
bind-key -n M-9 switch-client -p | |
bind-key -n M-0 switch-client -n | |
# Tab titles | |
setw -g monitor-activity on | |
set -g visual-activity on | |
set -g set-titles on | |
set -g set-titles-string '#S: #W' | |
setw -g automatic-rename | |
#Cycle through panes by pressing ctrl+E twice | |
unbind ^E | |
bind ^E select-pane -t :.+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment