pane_current_path from shell ?

19 views
Skip to first unread message

M Kelly

unread,
Apr 1, 2020, 11:05:36 AM4/1/20
to tmux-users
Hi,

Is there a way to get the #{pane_current_path} value from a tmux cmd in an unrelated shell ?

thx,
-m

Nicholas Marriott

unread,
Apr 1, 2020, 11:06:45 AM4/1/20
to M Kelly, tmux-users
What do you mean an unrelated shell? Running outside tmux?



--
You received this message because you are subscribed to the Google Groups "tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tmux-users+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/tmux-users/65311e45-cc24-4a8b-ab4a-b2316eb168f4%40googlegroups.com.

M Kelly

unread,
Apr 1, 2020, 11:07:14 AM4/1/20
to tmux-users
Hi,

ok, I think I have it:

tmux run-shell 'echo #{pane_current_path}'

thx,
-m

Nicholas Marriott

unread,
Apr 1, 2020, 11:13:41 AM4/1/20
to M Kelly, tmux-users
display -p is better than run-shell.

--
You received this message because you are subscribed to the Google Groups "tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tmux-users+...@googlegroups.com.

M Kelly

unread,
Apr 1, 2020, 11:18:53 AM4/1/20
to tmux-users
Hi,

ok, I will use:

tmux display -p '#{pane_current_path}'

thx,
-m

Reply all
Reply to author
Forward
0 new messages