summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Li <li.davidm96@gmail.com>2016-11-19 08:28:42 -0500
committerDavid Li <li.davidm96@gmail.com>2016-11-19 08:28:42 -0500
commit614c7c6e1f8f2245832f06fbba0db172ff04fccf (patch)
tree82a9f7e97f751ec3aa8c57a656840ca91cbbc81f
parent22a7e0004419cbb4e48bbba54a16053be5736a98 (diff)
Add basic tmux config
-rw-r--r--tmux.conf45
1 files changed, 45 insertions, 0 deletions
diff --git a/tmux.conf b/tmux.conf
new file mode 100644
index 0000000..d7e7ff0
--- /dev/null
+++ b/tmux.conf
@@ -0,0 +1,45 @@
+# Remap prefix
+set -g prefix C-o
+unbind C-b
+bind C-o send-prefix
+
+# force a reload of the config file
+unbind r
+bind r source-file ~/.tmux.conf
+
+# 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
+
+# Emacs-ish pane cycling
+unbind o
+bind o select-pane -t :.+
+
+# Set the terminal
+set -g default-terminal "tmux"
+
+# Use mouse highlighting
+set -g mouse on
+
+# focus events enabled for terminals that support them
+set -g focus-events on
+
+# Use windows like tabs
+bind -n S-down new-window
+bind -n S-left prev
+bind -n S-right next
+bind -n C-left swap-window -t -1
+bind -n C-right swap-window -t +1
+
+# Status bar
+# set -g status-right '#{prefix_highlight} | %a %Y-%m-%d %H:%M'
+
+# TODO: put this in Git