aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaúl Benencia <rul@kalgan.cc>2019-06-24 00:15:01 -0700
committerRaúl Benencia <rul@kalgan.cc>2019-06-24 00:15:04 -0700
commited3b617ba9ba5517970ee94cef814e91899f63b2 (patch)
treee733b68eb7d972a36004ce90744f24d09fe1ad7f
parent47c2a6543f2f6f82a7f49bd374d2232a0f0700f6 (diff)
Add tmux configuration
-rw-r--r--.tmux.conf68
1 files changed, 68 insertions, 0 deletions
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'
nihil fit ex nihilo