summaryrefslogtreecommitdiff
path: root/tmux.conf
diff options
context:
space:
mode:
Diffstat (limited to 'tmux.conf')
-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