Wednesday, 24 August 2011

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"

1 comment:

  1. Nice Post, Thanks for your very useful information... I will bookmark for next reference.