New windows open to original working directory instead of current directory with tmux 1.9
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
byobu |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I upgraded to Ubuntu 14.10 (with byobu 5.87 and tmux 1.9), and now when I open new windows, e.g. with F2, they all start in the original working directory, e.g. ~/foo if byobu was started in ~/foo, instead of the working directory of the current window.
This is the result of 'default-path' being removed in tmux 1.9. See the changelog in http://
It would be great if a "default path" option was available in byobu, as opening new windows in the current directory is much more useful IMHO :-)
Workaround:
1) Create ~/.byobu/
bind-key -n F2 new-window -c "#{pane_
bind-key -n C-F2 display-panes \; split-window -h -c "#{pane_
bind-key -n S-F2 display-panes \; split-window -v -c "#{pane_
# This seems to open a new session in / instead of the current directory; may want to keep it commented out for now
#bind-key -n C-S-F2 new-session -c "#{pane_
bind-key -n M-S-F8 new-window -c "#{pane_
bind-key -n S-F12 source $BYOBU_
2) Create ~/.byobu/
bind-key -n S-F12 source $BYOBU_
3) Add to ~/.byobu/
source-file $BYOBU_
4) Add to ~/.byobu/
# screen ^C c
unbind ^C
bind ^C new-window -c "#{pane_
unbind c
bind c new-window -c "#{pane_
# split -v |
unbind |
bind | split-window -c "#{pane_
Changed in byobu: | |
status: | New → Confirmed |