Today I Learned

A Hashrocket project

Ready to join Hashrocket? Find Openings here and apply today.

Change tmux working directory while in session

If you’d like the working directory of tmux to change while you are working in that tmux session, you can use the attach_session command at the tmux command promt.

To get to the tmux command prompt use <leader>: and then use attach-session with the -c flag.

# at the tmux command prompt
:attach-session -t . -c new_working_dir

This build’s on Jake’s last post.