From ed3b617ba9ba5517970ee94cef814e91899f63b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Benencia?= Date: Mon, 24 Jun 2019 00:15:01 -0700 Subject: Add tmux configuration --- .tmux.conf | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 .tmux.conf diff --git a/.tmux.conf b/.tmux.conf new file mode 100644 index 0000000..3c5c3f4 --- /dev/null +++ b/.tmux.conf @@ -0,0 +1,68 @@ +# Debian package: powerline + +# Plugins +#run-shell ~/src/git/notmine/tmux-plugins/tmux-pain-control/pain_control.tmux +#run-shell ~/src/git/notmine/tmux-plugins/tmux-copycat/copycat.tmux +#run-shell ~/src/git/notmine/tmux-plugins/tmux-yank/yank.tmux + +# Prefix +set -g prefix C-v +unbind-key C-b +bind-key C-v send-prefix + +## Binds +bind e set-window-option synchronize-panes + + +## Misc +# 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 + +# 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 +set -g mode-keys emacs + +# 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 + + +## Navigation +set -g base-index 1 # start windows numbering at 1 +setw -g pane-base-index 1 # make pane numbering consistent with windows + +setw -g automatic-rename on # rename window to reflect current program +set -g renumber-windows on # renumber windows when a window is closed + +set -g set-titles on # set terminal title +set -g set-titles-string '#h ❐ #S ● #I #W' + +set -g display-panes-time 800 # slightly longer pane indicators display time +set -g display-time 1000 # slightly longer status messages display time + +set -g status-interval 10 # redraw status line every 10 seconds + +# clear both screen and history +bind -n C-l send-keys C-l \; run 'sleep 0.1' \; clear-history + +# activity +set -g monitor-activity on +set -g visual-activity off + +# Debian Powerline +source '/usr/share/powerline/bindings/tmux/powerline.conf' -- cgit v1.2.3