# HG changeset patch # User Ludovic Chabant # Date 1554861270 25200 # Node ID 979513155f17c1888b78480319257ba7068b49c3 # Parent d3ff438a4f8b86c05cfc5c46e75048f835a687b5 Tmux config tweaks diff -r d3ff438a4f8b -r 979513155f17 tmux/tmux.conf --- 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