Created
January 3, 2016 19:29
-
-
Save NeoTeo/3b2625ea5c0993fb0bae to your computer and use it in GitHub Desktop.
My config file for tmux
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 prefix C-a # Set ctrl-a to be the new prefix | |
| unbind C-b # Unbind the default prefix | |
| set -sg escape-time 1 # Remove command delay | |
| # r to reload config | |
| bind r source-file ~/.tmux.conf \; display "Configuration reloaded." | |
| bind C-a send-prefix # Send prefix through on second use. | |
| bind | split-window -h # Vertical split on | | |
| bind - split-window -v # Horiz split on - | |
| # Bind pane selection keys to vim movement keys. | |
| bind h select-pane -L | |
| bind j select-pane -D | |
| bind k select-pane -U | |
| bind l select-pane -R | |
| # Bind prefix ctrl-h and prefix ctrl-l to cycle windows left/right | |
| bind -r C-h select-window -t :- | |
| bind -r C-l select-window -t :+ | |
| # Resize panes using vim movement keys | |
| 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 | |
| # Set terminal to 256 colors | |
| set -g default-terminal "screen-256color" | |
| # Set status bar colors | |
| set -g status-fg white | |
| set -g status-bg black | |
| # Style window list | |
| setw -g window-status-fg cyan | |
| setw -g window-status-bg default | |
| setw -g window-status-attr dim | |
| setw -g window-status-current-fg white | |
| setw -g window-status-current-bg red | |
| setw -g window-status-current-attr bright | |
| # Style pane divider colors | |
| set -g pane-border-fg white | |
| set -g pane-border-bg black | |
| set -g pane-active-border-fg red | |
| set -g pane-active-border-bg black | |
| # Style command line | |
| set -g message-fg white | |
| set -g message-bg black | |
| set -g message-attr bright | |
| # We want to be notified of activity in other windows | |
| setw -g monitor-activity on | |
| set -g visual-activity on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment