Starting terminals in tmux in particular directories

I've found a way to tweak my ~/.tmux.conf to create a terminals in particular directories:

# start a window in $HOME/foo and call it "bar"
set-option default-path "$HOME/foo"
neww -n bar

# another terminal in a different directory
set-option default-path "/var/cache/weird"
neww -n weird

# revert to default for any further windows
set-option default-path "$HOME"



Comments

Popular posts from this blog

Procenv 0.46 - now with more platform goodness

Byobu Bling with Unicode Custom Indicators

Upstart User Sessions in Ubuntu Raring