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
Post a Comment