summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--configs/rcs/Makefile3
-rw-r--r--configs/rcs/tmux.conf54
2 files changed, 56 insertions, 1 deletions
diff --git a/configs/rcs/Makefile b/configs/rcs/Makefile
index e1fe326..829ea13 100644
--- a/configs/rcs/Makefile
+++ b/configs/rcs/Makefile
@@ -9,7 +9,8 @@ INSTALL = \
 	gitconfig \
 	gitignore \
 	vimrc \
-	vim
+	vim \
+	tmux.conf
 
 
 INSTALLED = $(patsubst %,$(INTO)/.%,$(INSTALL))
diff --git a/configs/rcs/tmux.conf b/configs/rcs/tmux.conf
new file mode 100644
index 0000000..06f1524
--- /dev/null
+++ b/configs/rcs/tmux.conf
@@ -0,0 +1,54 @@
+# If running on macOS and the helper is available, reattach to user namespace
+# to have access to services like pasteboard, Keychain, etc.
+#
+# https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard/blob/master/README.md
+if-shell 'test $(uname -s) = "Darwin" && \
+          hash reattach-to-user-namespace 2> /dev/null' \
+  'set-option -g default-command "reattach-to-user-namespace -l ${SHELL}"; \
+   bind-key -T copy-mode C-q send -X copy-pipe "reattach-to-user-namespace pbcopy"'
+
+
+set-option -g status-keys vi
+set-window-option -g mode-keys vi
+
+### Modern Terminal
+set-option -g default-terminal "xterm-256color"
+set-option -g xterm-keys on
+# Tmux 2.1 unified mouse support into a single option: 'mouse on'.
+# Enable it but fallback on error if we're running an older Tmux.
+if-shell '! tmux set-option -g mouse on' \
+  'set-option -g mode-mouse on; \
+   set-option -g mouse-resize-pane on; \
+   set-option -g mouse-select-pane on; \
+   set-option -g mouse-select-window on'
+
+### Look & Feel
+set-option -g base-index 1
+set-option -g renumber-windows on
+set-option -g set-titles on
+set-option -g set-titles-string '@#h'
+set-option -g display-time 2000
+
+# command/message line colors
+set-option -g message-fg white
+set-option -g message-bg black
+set-option -g message-attr bright
+
+# default statusbar colors
+set-option -g status-fg colour245
+set-option -g status-bg black
+set-option -g status-attr default
+
+# default window title colors
+set-window-option -g window-status-fg colour33
+set-window-option -g window-status-bg default
+
+# active window title colors
+set-window-option -g window-status-current-fg default
+set-window-option -g window-status-current-bg default
+set-window-option -g window-status-current-attr reverse
+
+# status bar
+set-option -g status-left-length 16
+set-option -g status-left "%m/%d %H:%M"
+set-option -g status-right "#{host_short}"