summaryrefslogtreecommitdiff
path: root/dotfiles/tmux.conf
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles/tmux.conf')
-rw-r--r--dotfiles/tmux.conf32
1 files changed, 32 insertions, 0 deletions
diff --git a/dotfiles/tmux.conf b/dotfiles/tmux.conf
new file mode 100644
index 0000000..a2b2519
--- /dev/null
+++ b/dotfiles/tmux.conf
@@ -0,0 +1,32 @@
+# set the prefix to C-A
+unbind C-b
+set -g prefix C-a
+bind C-a send-prefix
+
+set -g default-terminal "tmux-256color"
+set -g aggressive-resize on
+set -g set-titles on
+set -g mode-keys vi
+
+set -g xterm-keys on
+
+# -,| do a horizontal/vertical split
+unbind-key %
+unbind-key '"'
+bind - split-window -v -c '#{pane_current_path}'
+bind | split-window -h -c '#{pane_current_path}'
+
+# spawn new shells in the current path
+bind c new-window -c '#{pane_current_path}'
+
+set-option -g history-limit 16384
+set-option -g update-environment "\
+ DISPLAY\
+ SSH_ASKPASS\
+ SSH_AUTH_SOCK\
+ SSH_AGENT_PID\
+ SSH_CONNECTION\
+ WINDOWID\
+ XAUTHORITY\
+ DBUS_SESSION_BUS_ADDRESS\
+"