aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tmux.conf37
1 files changed, 23 insertions, 14 deletions
diff --git a/tmux.conf b/tmux.conf
index a0154b3..97ed188 100644
--- a/tmux.conf
+++ b/tmux.conf
@@ -1,21 +1,33 @@
# vi bindings
-set-option -g status-keys vi
-set-window-option -g mode-keys vi
+set -g status-keys vi
+setw -g mode-keys vi
-set-window-option -g window-status-current-attr bright
+# reasonable history buffer
+set -g history-limit 10000
+
+# status line
+setw -g window-status-current-attr bright
set -g status-right '#(date "+%H:%M %Z %Y-%m-%d")'
set -g status-bg white
set -g status-left " #S@#h "
set -g status-left-length 15
set -g status-left-bg green
set -g status-left-fg white
+
+# ui
set -g set-titles on
set -g default-terminal "screen-256color"
-set-option -ga terminal-overrides ",xterm-256color:Tc"
+set -ga terminal-overrides ",xterm-256color:Tc"
+set -g pane-border-fg white
+
+# splits
+bind | split-window -h
+bind \ split-window -h
+bind - split-window -v
# reversed to match vim split names
-bind-key v select-layout even-horizontal
-bind-key h select-layout even-vertical
+bind v select-layout even-horizontal
+bind h select-layout even-vertical
# vim-style resize
bind -r H resize-pane -L 2
@@ -24,12 +36,12 @@ bind -r K resize-pane -U 2
bind -r L resize-pane -R 2
# vim-style move
-bind -r h select-pane -L
-bind -r j select-pane -D
-bind -r k select-pane -U
-bind -r l select-pane -R
+bind h select-pane -L
+bind j select-pane -D
+bind k select-pane -U
+bind l select-pane -R
-# bound arrow keys are annoying
+# unbind arrow keys
unbind Up
unbind Down
unbind Left
@@ -42,6 +54,3 @@ unbind C-Up
unbind C-Down
unbind C-Left
unbind C-Right
-
-# reasonable history buffer
-set -g history-limit 10000