Created
May 26, 2015 20:25
-
-
Save spheromak/bd611acc9099293d10a3 to your computer and use it in GitHub Desktop.
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
# C-b is not acceptable -- Vim uses it | |
set -g @tpm_plugins ' \ | |
tmux-plugins/tpm \ | |
tmux-plugins/tmux-yank \ | |
tmux-plugins/tmux-pain-control \ | |
tmux-plugins/tmux-resurrect \ | |
tmux-plugins/tmux-continuum \ | |
tmux-plugins/tmux-copycat \ | |
' | |
# turn on continum auto-restore | |
set -g @continuum-restore 'on' | |
# turn off continum auto-save | |
set -g @continuum-save-interval '0' | |
set-option -g prefix C-b | |
set-option -gw xterm-keys on | |
bind R source-file ~/.tmux.conf | |
# Start numbering at 1 | |
set -g base-index 1 | |
# Allows for faster key repetition | |
set -s escape-time 0 | |
# Set status bar | |
set -g status-bg black | |
set -g status-fg white | |
set -g status-left "" | |
set -g status-right "#[fg=green]#H" | |
# Rather than constraining window size to the maximum size of any client | |
# connected to the *session*, constrain window size to the maximum size of any | |
# client connected to *that window*. Much more reasonable. | |
setw -g aggressive-resize on | |
# Activity monitoring | |
setw -g monitor-activity on | |
set -g visual-activity on | |
# Example of using a shell command in the status line | |
set -g status-right "#[fg=yellow]#(uptime | cut -d ',' -f 2-)" | |
# Highlight active window | |
#set-window-option -g window-status-current-bg red | |
#set -g terminal-overrides 'xterm:colors=256' | |
set -g status-left "#(tmux-top n)" | |
set -g status-right "#(tmux-top m) #[fg=white]:: #(tmux-top l)" | |
# utf8 is on | |
set -g utf8 on | |
set -g status-utf8 on | |
# address vim mode switching delay (http://superuser.com/a/252717/65504) | |
set -s escape-time 0 | |
# increase scrollback buffer size | |
set -g history-limit 50000 | |
# tmux messages are displayed for 4 seconds | |
set -g display-time 4000 | |
# refresh 'status-left' and 'status-right' more often | |
set -g status-interval 5 | |
# set only on OS X where it's required | |
#set -g default-command "reattach-to-user-namespace -l $SHELL" | |
# upgrade $TERM | |
set -g default-terminal "screen-256color" | |
# emacs key bindings in tmux command prompt (prefix + :) are better than | |
# vi keys, even for vim users | |
set -g status-keys emacs | |
# focus events enabled for terminals that support them | |
set -g focus-events on | |
# mouse mode | |
set -g mode-mouse on | |
set -g mouse-resize-pane on | |
set -g mouse-select-pane on | |
set -g mouse-select-window 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 | |
# Allows us to use C-b b <command> to send commands to a TMUX session inside another TMUX session | |
bind-key b send-prefix | |
# C-Tab to stack swap panes | |
bind-key Tab last-pane | |
# make shift-P paste | |
bind-key P paste-buffer | |
# Initializes TMUX plugin manager. | |
# # Keep this line at the very bottom of tmux.conf. | |
run-shell '~/.tmux/plugins/tpm/tpm' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment