-
-
Save DevNerd/3236975 to your computer and use it in GitHub Desktop.
Tmux configuration example
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
| unbind C-b | |
| unbind l | |
| set -g prefix ` | |
| set-option -g status-keys vi | |
| set-window-option -g mode-keys vi | |
| set-window-option -g utf8 on | |
| set-window-option -g mode-mouse off | |
| set-option -g mouse-select-pane off | |
| set-option -g history-limit 4096 | |
| set -g default-terminal "screen-256color" | |
| set-option -g set-titles on | |
| set-option -g set-titles-string '[#S:#I #H] #W' | |
| setw -g mode-keys vi | |
| setw -g mode-mouse off | |
| setw -g monitor-activity off | |
| bind r source-file ~/.tmux.conf | |
| # title (default key in tmux is ',') | |
| bind-key A command-prompt "rename-window %%" | |
| set -g status-left-length 30 | |
| set -g status-left '#[fg=colour244].:#[fg=colour244][#[fg=blue]#S#[fg=colour244]]#[fg=colour244][#[fg=green]#H#[fg=colour244]]#[fg=colour244]::#[default]' | |
| set -g status-right "#[fg=colour244]::#[fg=colour244][#[fg=green]#(uptime |awk -F': ' '{print $2}' |sed 's/,//g')#[fg=colour244]]#[default]#[fg=colour244]:.#[default]" | |
| # default statusbar colors | |
| set-option -g status-bg colour228 | |
| set-option -g status-fg colour136 | |
| set-option -g status-attr default | |
| # default window title colors | |
| set-window-option -g window-status-fg colour244 | |
| 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 | |
| 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 | |
| set-option -g pane-active-border-fg colour240 | |
| # message text | |
| set-option -g message-bg colour30 | |
| set-option -g message-fg white | |
| # pane number display | |
| set-option -g display-panes-active-colour colour33 | |
| set-option -g display-panes-colour colour166 | |
| setw -g aggressive-resize on | |
| set -s escape-time 0 | |
| # use "v" and "s" to do vertical/horizontal splits, like vim | |
| bind s split-window -v | |
| bind v split-window -h | |
| # use the vim motion keys to move between panes and resizing | |
| bind h select-pane -L | |
| bind j select-pane -D | |
| bind k select-pane -U | |
| bind l select-pane -R | |
| bind < resize-pane -L 1 | |
| bind > resize-pane -R 1 | |
| bind , previous-window | |
| bind . next-window | |
| setw -g mode-keys vi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment