Created
February 28, 2014 12:22
-
-
Save bailon/9270185 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
# Set the prefix to ^z | |
#unbind-key C-b | |
set-option -g prefix C-z | |
bind-key C-z send-prefix | |
# screen ^C c | |
unbind-key ^C | |
bind-key ^C new-window | |
unbind-key c | |
bind-key c new-window | |
# detach ^D d | |
unbind-key ^D | |
bind-key ^D detach | |
# panes: | |
set-option -g pane-border-fg blue | |
set-option -g pane-border-bg default | |
set-option -g pane-active-border-fg blue | |
set-option -g pane-active-border-bg default | |
# panes start at 1 instead of 0 | |
set-option -g base-index 1 | |
set-option -g pane-base-index 1 | |
# window title: | |
set-option -g set-titles on | |
set-option -g set-titles-string '#{pane_current_command}' | |
#set-option -g set-titles-string '[#S:#I.#P] #W' | |
set-window-option -g automatic-rename on | |
# current window navigation: | |
bind-key h select-pane -L | |
bind-key j select-pane -D | |
bind-key k select-pane -U | |
bind-key l select-pane -R | |
# resizing: | |
bind-key -r C-h resize-pane -L | |
bind-key -r C-j resize-pane -D | |
bind-key -r C-k resize-pane -U | |
bind-key -r C-l resize-pane -R | |
#splitting and cycling: | |
unbind % | |
bind-key - split-window -h | |
unbind '"' | |
bind-key = split-window -v | |
bind-key u last-window | |
bind-key C-n next-window | |
bind-key C-p previous-window | |
# Terminal emulator window title | |
set-option -g set-titles on | |
set-option -g set-titles-string '#S:#I.#P #W' | |
# Status bar | |
#set-option -g status-position top | |
set-option -g status-justify centre | |
set-option -g status-bg black | |
set-option -g status-fg white | |
set-option -g status-interval 5 | |
setw -g window-status-format "#[bg=cyan,fg=black] #I #[bg=blue,fg=black] #W " | |
setw -g window-status-current-format "#[bg=cyan,fg=brightwhite] #I #[bg=blue,fg=brightwhite] #W " | |
set -g status-justify left | |
set-option -g status-right '#[bg=yellow,fg=black] #H #[default] #[bg=red,fg=black] %H:%M #[default]' | |
set-option -g status-left '' | |
# Notifying if other windows has activities | |
set-option -g visual-activity on | |
set-window-option -g monitor-activity on | |
# Clock | |
set-window-option -g clock-mode-colour green | |
set-window-option -g clock-mode-style 24 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment