I don't know if this is something that's changed in a recent version of byobu, but now when I create a new screen, the new screen is in the same directory as my current window. At first this wasn't too annoying, a simple "cd ~" would get me where I wanted. But I've been noticing strange things. During a gem install, if I create a new window, I end up inside the directory that the gem is being installed to ( when using rbenv ).
I just want this to stop. How do I set up byobu/tmux so that it opens all new windows in my home directory?
I've looked through a few files, but I can't seem to see any commands ( such as errant 'chdir' ) that would be causing this.
In Ubuntu, I can get the desired behavior by adding the following line to ${HOME}/.byobu/.tmuxrc :
This option is document in tmux's manual page:
I initially tried with
set-option -g default-path ~
, but it appears that tmux doesn't understand that alias.Update: the above doesn't work with byobu 5.92 (maybe other versions) and tmux 1.9, as tmux has removed the
default-path
option. It seems the byobu dev was using that to get the behavior where new windows open in the CWD, whereas I and the questioner wanted it to open in the HOME dir by default. In the new default bindings in/usr/share/byobu/keybindings/f-keys.tmux
I found this:To get the desired behavior of always making byobu open new screens in your home directory, add the following to
~/.byobu/keybindings.tmux
: