Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 509 Bytes

change-base-directory-of-existing-session.md

File metadata and controls

17 lines (11 loc) · 509 Bytes

Change Base Directory Of Existing Session

Each tmux session has a base directory. This is determined when you first create the session. When you open a new window or pane, this will be used as the base directory of your new shell session.

You can change the base directory of an existing tmux session.

First, detach from the session: <prefix>d

Then, re-attach using the -c flag:

$ tmux attach -t your-session-name -c /new/base/dir

source