Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
rc/.tmux.conf
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
43 lines (38 sloc)
1.83 KB
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
| # Switch me back to ^A, thanks | |
| set-option -g prefix C-a | |
| unbind-key C-b | |
| bind-key a send-prefix | |
| # I miss ^A^A and ^ASpace | |
| bind-key C-a last-window | |
| bind-key Space next-window | |
| bind-key C-Space previous-window | |
| # New windows should start in the same directory as the current pane | |
| bind-key c neww -c "#{pane_current_path}" | |
| # Options | |
| set-option -sg escape-time 50 # this makes vim fucking awful to use | |
| set-option -g base-index 1 | |
| set-option -g default-terminal screen-256color | |
| set-option -g history-limit 5000 | |
| set-option -g lock-command vlock | |
| set-option -g focus-events on # allows terminal vim to know when it gets focus | |
| set-window-option -g xterm-keys on # to make ctrl-arrow, etc. work | |
| set-window-option -g allow-rename on | |
| set-option -g set-titles on | |
| set-option -g set-titles-string '[#{session_name}:#{window_index} #{host_short}] #{window_name}' # use screen title | |
| # COLORS. | |
| # For reference, the xterm color cube points are: 00, 5F, 87, AF, D7, FF | |
| # Status bar has a dim gray background | |
| set-option -g status-style fg=colour0,bg=colour234 | |
| # Left shows the session name, in blue | |
| set-option -g status-left-style fg=colour74,bg=default | |
| # Right is some CPU stats, so terminal green | |
| set-option -g status-right-style fg=colour71,bg=default | |
| # Windows are medium gray; current window is white | |
| set-window-option -g window-status-style fg=colour244 | |
| set-window-option -g window-status-current-style 'fg=#ffffff,bg=#000000' | |
| # Beeped windows get a blinding orange background | |
| set-window-option -g window-status-bell-style 'fg=#000000,bg=#d78700,none' | |
| # Trim window titles to a reasonable length | |
| # FIXME used to use #[default] here but it broke in 2.9 | |
| set-window-option -g window-status-format '#[fg=yellow]#{window_flags}#{window_index}#[fg=colour244] #{=32:window_name} ' | |
| set-window-option -g window-status-current-format '#[fg=yellow] #{window_index}#[fg=#ffffff] #{=32:window_name} ' |