Last active
October 16, 2016 20:59
-
-
Save rewiko/8767f48f659d7eebb8c39245a73dc2a2 to your computer and use it in GitHub Desktop.
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
| #------------------------------------------------------------------------------ | |
| # DEFAULT CONFIGURATION | |
| #------------------------------------------------------------------------------ | |
| # default colors configuration (needed for vim) | |
| set -g default-terminal "screen-256color" | |
| # mouse for MAC | |
| set-option -g mouse on | |
| # mouse for PC | |
| # use your mouse to select pane | |
| #set -g mouse-select-pane on | |
| # enable scroll with the mouse | |
| #set-option -g mouse-select-window on | |
| #set -g mode-mouse on | |
| # not sure what these settings are for | |
| set-option -g status-keys vi | |
| set-window-option -g mode-keys vi | |
| # windows starts at 1 | |
| set -g base-index 1 | |
| # display messages for a second | |
| set -g display-time 1000 | |
| # prevent tmux to rename windows | |
| set -g set-titles off | |
| setw -g automatic-rename off | |
| set -g base-index 1 | |
| set -g pane-base-index 1 | |
| # Set window notifications | |
| set-window-option -g monitor-activity on | |
| set -g visual-activity on | |
| #------------------------------------------------------------------------------ | |
| # SHORTCUT | |
| #------------------------------------------------------------------------------ | |
| # changing default prefix to CTRL+x | |
| #set -g prefix C-x | |
| #unbind C-b | |
| #bind C-x send-prefix | |
| # reload .tmux.conf file | |
| bind r source ~/.tmux.conf | |
| # sync panes | |
| unbind s | |
| bind s set -g synchronize-panes | |
| bind '"' split-window -c "#{pane_current_path}" | |
| bind % split-window -h -c "#{pane_current_path}" | |
| bind c new-window -c "#{pane_current_path}" | |
| # ctrl+left/right cycles thru windows | |
| bind-key -n C-right next | |
| bind-key -n C-left prev | |
| # alt+directions navigates through panes | |
| bind-key -n M-left select-pane -L | |
| bind-key -n M-right select-pane -R | |
| bind-key -n M-up select-pane -U | |
| bind-key -n M-down select-pane -D | |
| # quit tmux | |
| bind \ kill-server | |
| bind j resize-pane -D 10 | |
| bind k resize-pane -U 10 | |
| bind l resize-pane -L 10 | |
| bind h resize-pane -R 10 | |
| #------------------------------------------------------------------------------ | |
| # COLOURS | |
| #------------------------------------------------------------------------------ | |
| # color0 == black | |
| # color15 == white | |
| # color124 == red | |
| # color240 == gray | |
| # color250 == lightgray | |
| #------------------------------------------------------------------------------ | |
| #------------------------------------------------------------------------------ | |
| # PANE | |
| #------------------------------------------------------------------------------ | |
| # not active pane separator | |
| set -g pane-border-fg colour244 | |
| set -g pane-border-bg default | |
| # active pane separator | |
| set -g pane-active-border-fg colour124 | |
| set -g pane-active-border-bg default | |
| #------------------------------------------------------------------------------ | |
| # STATUSBAR | |
| #------------------------------------------------------------------------------ | |
| # default statusbar colors | |
| set -g status-fg colour235 | |
| set -g status-bg colour250 | |
| set -g status-attr dim | |
| # current or active window in status bar | |
| set-window-option -g window-status-current-fg colour15 | |
| set-window-option -g window-status-current-bg colour0 | |
| set-window-option -g window-status-current-format ' #W ' | |
| # alerted window in status bar. Windows which have an alert (bell, activity or content). | |
| #set-window-option -g window-status-alert-fg colour124 | |
| #set-window-option -g window-status-alert-bg colour15 | |
| # command/message line colors | |
| set -g message-fg colour15 | |
| set -g message-bg colour124 | |
| set -g message-attr dim | |
| # left side of status bar | |
| set -g status-left-length 30 | |
| set -g status-left ' #S | #(hostname | cut -d. -f 1) ' | |
| # right side of status bar | |
| set -g status-right-length 30 | |
| set -g status-right '%Y-%m-%d | %H:%M ' | |
| # status bar options | |
| set-option -g status-justify centre # alignment of windows | |
| set-window-option -g window-status-format ' #W ' # Inactive windows in status bar | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment