From 40ee634f585b5e54b0fbff4961f3cbe662291360 Mon Sep 17 00:00:00 2001 From: Norm Rasmussen Date: Sun, 16 Jul 2023 13:22:40 -0400 Subject: [PATCH] Added to tmux.conf that when a new pane is created, its in the same working directory! So clutch. --- tmux/.config/tmux/tmux.conf | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tmux/.config/tmux/tmux.conf b/tmux/.config/tmux/tmux.conf index d93f016..1431129 100644 --- a/tmux/.config/tmux/tmux.conf +++ b/tmux/.config/tmux/tmux.conf @@ -18,6 +18,17 @@ set -g focus-events on # enable mouse support set-option -g mouse on +# Open Pane in same working directory +# Set the control character to Ctrl+Spacebar (instead of Ctrl+B) +set -g prefix C-b +unbind-key C-space +bind-key C-b send-prefix + +# Set new panes to open in current directory +bind c new-window -c "#{pane_current_path}" +bind '"' split-window -c "#{pane_current_path}" +bind % split-window -h -c "#{pane_current_path}" + # Vim-Tmux-Navigator plugin/ set -g @plugin 'christoomey/vim-tmux-navigator'