changeset 468:979513155f17

Tmux config tweaks
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 09 Apr 2019 18:54:30 -0700
parents d3ff438a4f8b
children 07ee0d517d92
files tmux/tmux.conf
diffstat 1 files changed, 22 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tmux/tmux.conf	Fri Mar 22 18:21:13 2019 -0700
+++ b/tmux/tmux.conf	Tue Apr 09 18:54:30 2019 -0700
@@ -6,6 +6,14 @@
 
 # Start at 1, so you don't have to reach to that 0 on the right of the keyboard so often.
 set -g base-index 1
+# Renumber windows when a window is closed
+# This guarantees it will be easier for you to switch
+# between windows as you keep opening and closing them
+set -g renumber-windows on
+
+# Automatically set window title according to the running program
+set-window-option -g automatic-rename on
+set-option -g set-titles on
 
 # Thyme integration
 #set-option -g status-right '#(cat ~/.thyme-tmux)'
@@ -16,3 +24,17 @@
 
 set -g default-terminal "xterm"
 
+set -s escape-time 0
+
+bind - split-window -v
+bind | split-window -h
+
+# Workaround to allow accessing OSX pasteboard
+# set-option -g default-command "reattach-to-user-namespace -l zsh"
+
+# Vi copypaste
+# setw -g mode-keys vi
+# unbind p
+# bind p paste-buffer
+# bind-key -T copy-mode-vi v send-keys -X begin-selection
+# bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel