Last active
October 3, 2018 19:34
-
-
Save amonger/57d0ed7739ea35930ea5 to your computer and use it in GitHub Desktop.
Tmux Configuration
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
| #new-session | |
| set -g default-shell $SHELL | |
| #set -g default-command "reattach-to-user-namespace -l ${SHELL}" | |
| set -g default-command "reattach-to-user-namespace -l zsh" | |
| set -g pane-border-status top | |
| set -g pane-border-format "#{pane_current_path}" | |
| set -g window-style 'bg=colour235' | |
| set -g window-active-style 'bg=black' | |
| # set the pane border colors | |
| setw -g pane-border-fg colour238 | |
| set -g pane-border-bg colour238 | |
| set -g pane-active-border-bg colour238 | |
| setw -g pane-active-border-fg colour238 | |
| #set -g pane-active-border-bg colour136 | |
| # Make mouse useful in copy mode | |
| #setw -g mode-mouse on | |
| # Allow mouse to select which pane to use | |
| #set -g mouse-select-pane on | |
| # Allow xterm titles in terminal window, terminal scrolling with scrollbar, and setting overrides of C-Up, C-Down, C-Left, C-Right | |
| set -g terminal-overrides "xterm*:XT:smcup@:rmcup@:kUP5=\eOA:kDN5=\eOB:kLFT5=\eOD:kRIT5=\eOC" | |
| # Scroll History | |
| set -g history-limit 30000 | |
| # Set ability to capture on start and restore on exit window data when running an application | |
| setw -g alternate-screen on | |
| # Lower escape timing from 500ms to 50ms for quicker response to scroll-buffer access. | |
| set -s escape-time 50 | |
| # resize panes with mouse (drag borders) | |
| #set -g mouse-select-pane on | |
| #set -g mouse-resize-pane on | |
| # Use vim keybindings in copy mode | |
| setw -g mode-keys vi | |
| # Setup 'v' to begin selection as in Vim | |
| bind-key -t vi-copy v begin-selection | |
| bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy" | |
| # Update default binding of `Enter` to also use copy-pipe | |
| unbind -t vi-copy Enter | |
| bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy" | |
| bind-key j command-prompt -p "join pane from:" "join-pane -s '%%'" | |
| bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'" | |
| # default statusbar colors | |
| set-option -g status-bg colour233 #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 | |
| # 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