From 14eed43bb4c75b1e72829981f653767d0363e5e2 Mon Sep 17 00:00:00 2001 From: Tiffany Lin Date: Sat, 3 Oct 2020 09:28:12 -0700 Subject: [PATCH] Move user customizations to tmux git repo --- tmux.conf.local | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/tmux.conf.local b/tmux.conf.local index 2de8620..5804e8e 100644 --- a/tmux.conf.local +++ b/tmux.conf.local @@ -274,8 +274,13 @@ tmux_conf_copy_to_os_clipboard=false # -- user customizations ------------------------------------------------------- # this is the place to override or undo settings +# Explicitly open tmux with zsh +# For work devpod, but should not impact local tmux +set -g default-shell /bin/zsh +set -g default-command /bin/zsh + # increase history size -#set -g history-limit 10000 +set -g history-limit 10000 # start with mouse mode enabled #set -g mouse on @@ -293,7 +298,23 @@ tmux_conf_copy_to_os_clipboard=false # bind C-a send-prefix # move status line to top -#set -g status-position top +set -g status-position top + +# split panes using | and - +bind \\ split-window -h +bind - split-window -v +unbind '"' +unbind % + +# switch panes using Alt-arrow without prefix +# Only works in iTerm/Mac rn? +bind -n M-h select-pane -L +bind -n M-l select-pane -R +bind -n M-k select-pane -U +bind -n M-j select-pane -D + +# set space to toggle between pane layouts +bind '"' next-layout # -- custom variables ----------------------------------------------------------