Created
April 9, 2012 14:22
-
-
Save Aneurysm9/2343768 to your computer and use it in GitHub Desktop.
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 the prefix to ^A. | |
unbind C-b | |
set -g prefix ^A | |
bind a send-prefix | |
# Bind appropriate commands similar to screen. | |
# lockscreen ^X x | |
unbind ^X | |
bind ^X lock-server | |
unbind x | |
bind x lock-server | |
# screen ^C c | |
unbind ^C | |
bind ^C new-window | |
unbind c | |
bind c new-window | |
# detach ^D d | |
unbind ^D | |
bind ^D detach | |
# displays * | |
unbind * | |
bind * list-clients | |
# next ^@ ^N sp n | |
unbind ^@ | |
bind ^@ next-window | |
unbind ^N | |
bind ^N next-window | |
unbind " " | |
bind " " next-window | |
unbind n | |
bind n next-window | |
# title A | |
unbind A | |
bind A command-prompt "rename-window %%" | |
# other ^A | |
unbind ^A | |
bind ^A last-window | |
# prev ^H ^P p ^? | |
unbind ^H | |
bind ^H previous-window | |
unbind ^P | |
bind ^P previous-window | |
unbind p | |
bind p previous-window | |
unbind BSpace | |
bind BSpace previous-window | |
# windows ^W w | |
unbind ^W | |
bind ^W list-windows | |
unbind w | |
bind w list-windows | |
# quit \ | |
unbind \ | |
bind \ confirm-before "kill-server" | |
# kill K k | |
unbind K | |
bind K confirm-before "kill-window" | |
# redisplay ^L l | |
unbind ^L | |
bind ^L refresh-client | |
# More straight forward key bindings for splitting | |
unbind % | |
bind | split-window -h | |
bind v split-window -h | |
unbind '"' | |
bind - split-window -v | |
bind / command-prompt "split-window 'exec %%'" | |
bind S command-prompt "new-session -s %1 'ssh %1' \; set -t %1 default-command 'ssh %1'" | |
# History | |
set -g history-limit 1000 | |
# Terminal emulator window title | |
set -g set-titles on | |
set -g set-titles-string '#S:#I.#P #W' | |
# Status Bar | |
set -g status-bg black | |
set -g status-fg white | |
set -g status-interval 1 | |
set -g status-left '#[fg=green,bold]#H#[default]' | |
set -g status-right '#[fg=yellow]#(cut -d " " -f 1-4 /proc/loadavg)#[default] #[fg=cyan,bold]%Y-%m-%d %H:%M:%S#[default]' | |
# Notifying if other windows has activities | |
setw -g monitor-activity on | |
set -g visual-activity off | |
# Highlighting the active window in status bar | |
setw -g window-status-current-bg blue | |
# Clock | |
setw -g clock-mode-colour green | |
setw -g clock-mode-style 24 | |
# Panes | |
set -g mouse-resize-pane on | |
set -g mouse-select-pane on | |
# Windows | |
set -g mouse-select-window on | |
setw -g mode-mouse on | |
# " windowlist -b | |
unbind '"' | |
bind '"' choose-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 | |
bind-key -r C-h select-window -t :- | |
bind-key -r C-l select-window -t :+ | |
set -g detach-on-destroy off | |
setw -g alternate-screen off |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment