Created
October 31, 2013 02:48
-
-
Save dialtone/7243688 to your computer and use it in GitHub Desktop.
My .tmux.conf setup
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
# Rebind key to Ctrl-a | |
unbind C-b | |
set -g prefix C-z | |
bind-key C-z send-prefix | |
# In copy mode behave like vi | |
setw -g mode-keys vi | |
setw -g xterm-keys on | |
# Use mouse to make selections | |
setw -g mode-mouse on | |
set -g mouse-select-pane on | |
set -g mouse-resize-pane on | |
set -g mouse-select-window on | |
# Move across panes in the same window | |
bind -n M-Left select-pane -L | |
bind -n M-Right select-pane -R | |
bind -n M-Up select-pane -U | |
bind -n M-Down select-pane -D | |
# Try to browse windows | |
bind -n S-Right next-window | |
bind -n S-Left previous-window | |
# History limit | |
set-option -g history-limit 1000000 | |
# Simpler split windows | |
unbind % | |
bind | split-window -h | |
bind - split-window -v | |
# Synchronize panes flag | |
bind a setw -g synchronize-panes | |
# UTF-8 | |
setw -g utf8 on | |
set-option -g status-utf8 on | |
# Reload key | |
bind r source-file ~/.tmux.conf | |
# Bind close pane | |
unbind x | |
bind C-x kill-pane | |
unbind c | |
bind C-c new-window | |
# Look good | |
set -g default-terminal "screen-256color" | |
setw -g xterm-keys on | |
# # Set window notifications | |
setw -g monitor-activity on | |
set -g visual-activity on | |
# Sync panes | |
bind C-s set-window-option synchronize-panes | |
# OSX Clipboard support | |
#set-option -g default-command "reattach-to-user-namespace -l sh" | |
#bind C-v run "tmux set-buffer $(reattach-to-user-namespace pbpaste); tmux paste-buffer" | |
#bind C-c run "tmux save-buffer - | reattach-to-user-namespace pbcopy" | |
# bar on top | |
set-option -g status-position top | |
# Status bar style from tmux-solarize | |
# default statusbar colors | |
set-option -g status-bg colour235 #base02 | |
set-option -g status-fg colour136 #yellow | |
set-option -g status-attr default | |
# default window title colors | |
set-window-option -g window-status-fg colour244 #base0 | |
set-window-option -g window-status-bg default | |
#set-window-option -g window-status-attr dim | |
# active window title colors | |
set-window-option -g window-status-current-fg colour166 #orange | |
set-window-option -g window-status-current-bg default | |
#set-window-option -g window-status-current-attr bright | |
# pane border | |
set-option -g pane-border-fg colour235 #base02 | |
set-option -g pane-active-border-fg colour240 #base01 | |
# message text | |
set-option -g message-bg colour235 #base02 | |
set-option -g message-fg colour166 #orange | |
# pane number display | |
set-option -g display-panes-active-colour colour33 #blue | |
set-option -g display-panes-colour colour166 #orange | |
setw -g window-status-format "#[fg=colour244]#[bg=default] #I #[bg=default]#[fg=colour244] #W " | |
setw -g window-status-current-format "#[bg=default]#[fg=colour166] #I #[fg=colour166]#[bg=default] #W " | |
# clock | |
set-window-option -g clock-mode-colour colour64 #green |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment