setting (changing) working directory on split

12 views
Skip to first unread message

Matt Zagrabelny

unread,
Aug 8, 2019, 11:32:37 AM8/8/19
to tmux-...@googlegroups.com
Greetings,

When splitting a window into a second (or nth) pane, I'd like the working directory of the new pane to be set to current working directory of the pane that was focused when split command was issued.

Does anyone know of a way to accomplish this?

Thanks for any help!

-m

Nicholas Marriott

unread,
Aug 8, 2019, 11:43:45 AM8/8/19
to Matt Zagrabelny, tmux-users
On all platforms except OpenBSD: splitw -c '#{pane_current_path}'
> --
> 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/CAOLfK3XKxHJsGZt5zHgg_tjbXW0-U4m0u9N0Ezx%2BbDnf%3DxiAPA%40mail.gmail.com.

Matt Zagrabelny

unread,
Aug 8, 2019, 2:49:20 PM8/8/19
to Nicholas Marriott, tmux-users
On Thu, Aug 8, 2019 at 10:43 AM Nicholas Marriott <nicholas...@gmail.com> wrote:
On all platforms except OpenBSD: splitw -c '#{pane_current_path}'


Thank you Nicholas!

-m 
Reply all
Reply to author
Forward
0 new messages