# Set the control character to Ctrl+Spacebar (instead of Ctrl+B) | |
set -g prefix C-space | |
unbind-key C-b | |
bind-key C-space 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}" |
I didn't realize how much I needed this. Thanks.
Great, thanks. This should be the default behavior.
No over-exaggeration when I say this.... but this is LIFE CHANGING! ;)
Thanks!!!
Naisu!
Thank you!
Work :)
Thank you!
Thanks!
Thanks !!!
Thanks!!
You are a lifesaver!!! Thank u!
amazing!
=)
Awesome!! Thx!!
Thanks! Works well !!!
This is great! Thank you!
save lots of time! thx!
You are amazing, thank you senpai
Thank you! :)
This is really what I need! Thank you so much!
Here is all I added to mine, if you wanna see the "bare minimum requirements":
# window splits
bind-key v split-window -h -c "#{pane_current_path}"
bind-key b split-window -c "#{pane_current_path}"
Exactly what I was looking for, and easy to grok! Thank you @william8th!
Is there a way to open new pane not only in same directory but alse in same shell?
For example:
- i open term, default SHELL is '/bin/zsh'
- split pane and run powershell - now i have 2 panes, with zsh and pwsh
- being in pwsh pane, split-pane creates another zsh pane, but pwsh needed
i've tried with setting
$env:SHELL = '%full pwsh path%'
in pwsh profile and
set-option -g default-command "${SHELL}"
set-option -g default-shell "${SHELL}"
bind '"' split-window -c "#{pane_current_path}" "${SHELL}"
bind % split-window -h -c "#{pane_current_path}" "${SHELL}"
in tmux.conf but it not works :c
Thank you! Saves me so much daily frustration.
Awesome, thanks!
this did not work in cygwin 3.3.6. hmmm
you're a G thank you
Fucking awesome!