You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
#{pane_current_path} does not retain symlinked path #1282
User option would probably be best, tmux set-option. You can use TMUX_PANE inside the pane to generate a unique name when you store the PWD, then use display -F #{pane_id} to get the current pane ID in a script, look up the option and pass it to neww -c.
Activity
sorsasampo commentedon Mar 14, 2018
Same result with
tmux -V2.6, package 2.6-3~bpo9+1.nicm commentedon Mar 14, 2018
sorsasampo commentedon Mar 14, 2018
I guess the relevant code is here:
tmux/format.c
Lines 534 to 547 in 9fd9952
tmux/osdep-linux.c
Lines 64 to 90 in 895f1d9
So, basically the same as
/proc/$$/cwd.Any ideas how to access the
$PWDof the running process from the tmux command line?nicm commentedon Mar 15, 2018
You will need to make the shell tell tmux by setting something in the tmux environment or a user option.
sorsasampo commentedon Mar 15, 2018
And how would I do that exactly?
nicm commentedon Mar 15, 2018
User option would probably be best, tmux set-option. You can use TMUX_PANE inside the pane to generate a unique name when you store the PWD, then use display -F #{pane_id} to get the current pane ID in a script, look up the option and pass it to neww -c.
typelogic commentedon Nov 27, 2019
Is there a fix to this? For
bind-key c new-window -c "#{pane_current_path}"to work? I have 2.6 under cygwin.hanxi commentedon Nov 27, 2019
@typelogic I use symlinked like this:
lock commentedon Mar 11, 2020
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.