Skip to content

pane_current_path doesn't agree with pane's PWD #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mfarrugi opened this issue Jun 26, 2015 · 4 comments
Closed

pane_current_path doesn't agree with pane's PWD #33

mfarrugi opened this issue Jun 26, 2015 · 4 comments

Comments

@mfarrugi
Copy link

With the following settings, new panes appear to open in pwd -P instead of pwd. This is somewhat unintuitive (and annoying to hack around).

# Ubuntu 9.10

bind '"' split-window -v -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"

Current pane pwd: ~/dots
<split-window>
New Pane:/net/host/user/me/dots

@nicm
Copy link
Member

nicm commented Jun 26, 2015

Logical cwd is a shell construct and tmux has no access to it

@mfarrugi
Copy link
Author

Ah I see.

I'm not proficient enough in C to know/check this myself, but is getenv("PWD") too unstable to use for this? Or would it still refer to the server process in this context?

@nicm
Copy link
Member

nicm commented Jul 6, 2015

tmux has no access to environment variables from the child processes either.

@lock
Copy link

lock bot commented Feb 17, 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.

@lock lock bot locked and limited conversation to collaborators Feb 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants