commit 5062d004d35ff121178990e5fecf04ff865de7e2 (patch)
parent 17172177ca337aa5c67288790e84fb125e5ececf
Author: Alex Karle <alex@alexkarle.com>
Date: Sat, 19 Feb 2022 12:38:13 -0500
tmux: Bind `c` to open to the current directory
I have the same for | and - -- it's just nice to get a fresh
window in the same project!
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/.tmux.conf b/.tmux.conf
@@ -19,6 +19,7 @@ bind-key C-l select-pane -R
# Use | and - for more intuitive splits (in the same location!)
bind-key | split-window -c "#{pane_current_path}" -h
bind-key - split-window -c "#{pane_current_path}" -v
+bind-key c new-window -c "#{pane_current_path}"
# Start numbers at 1 (like the keyboard), and reorder on close
set-option -g base-index 1