Created
October 6, 2015 07:32
-
-
Save solyarisoftware/ee419828f35389ed0c04 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
# set prefix to ctrl-a | |
set -g prefix C-a | |
unbind C-b | |
bind C-a send-prefix | |
# easier and faster switching between next/prev window | |
bind C-p previous-window | |
bind C-n next-window | |
# 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 | |
#set -sg escape-time 1 | |
# increase scrollback buffer size | |
set -g history-limit 50000 | |
# focus events enabled for terminals that support them | |
set -g focus-events on | |
# super useful when using "grouped sessions" and multi-monitor setup | |
setw -g aggressive-resize on | |
#source ~/.local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf | |
# Options | |
set -g bell-action none | |
set -g set-titles on | |
#set -g set-titles-string "tmux (#I:#W)" | |
#set -g status-left "" | |
#set -g status-left-attr bold | |
#set -g status-right "tmux" | |
#set -g pane-active-border-bg black | |
#set -g pane-active-border-fg black | |
# upgrade $TERM | |
set -g default-terminal "screen-256color" | |
# 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 | |
# emacs key bindings in tmux command prompt (prefix + :) are better than | |
# vi keys, even for vim users | |
set -g status-keys emacs | |
# | |
set -g base-index 1 | |
setw -g pane-base-index 1 | |
# Keys | |
bind | split-window -h | |
bind - split-window -v | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
bind k confirm kill-window | |
#bind K confirm kill-server | |
#bind % split-window -h | |
#bind : split-window -v | |
bind < resize-pane -L 1 | |
bind > resize-pane -R 1 | |
bind N resize-pane -D 1 | |
bind P resize-pane -U 1 | |
# bind . command-prompt | |
# bind a last-window | |
# bind space command-prompt -p index "select-window" | |
bind r source-file ~/.tmux.conf | |
# mouse | |
setw -g mode-mouse on | |
set -g mouse-select-pane on | |
set -g mouse-resize-pane on | |
set -g mouse-select-window on | |
# colors settings | |
set -g status-fg white | |
set -g status-bg black | |
set -g message-fg default | |
set -g message-bg default | |
set -g window-status-fg default | |
set -g window-status-attr dim | |
set -g window-status-current-fg white | |
set -g window-status-current-fg red | |
set -g window-status-current-attr dim | |
# List of plugins | |
set -g @plugin 'tmux-plugins/tmux-resurrect' | |
set -g @plugin 'tmux-plugins/tpm' | |
# initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) | |
run '~/.tmux/plugins/tpm/tpm' | |
# https://github.com/tmux-plugins/tmux-resurrect/blob/master/docs/restoring_vim_and_neovim_sessions.md | |
set -g @resurrect-strategy-vim 'session' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment