Tmux default path for new panes

I use tmux to organize my workspace as I’m working on a project. One command that has made this possible, allows me to change the default directory that new panes in tmux will open to.

In order to type this command in, tmux has a command mode that can be accessed with the ctrl + : keyboard shortcut.

attach -c /path/to/new/default/dir

Then open up a new tmux window/pane. (e.g. ctrl + b, n). You’re new window will open to your new default dir path.

1 comment

Leave a Reply