New windows open to original working directory instead of current directory with tmux 1.9

Bug #1393793 reported by Jeffery To on 2014-11-18
This bug affects 5 people
Affects Status Importance Assigned to Milestone

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

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 :-)


1) Create ~/.byobu/f-keys.tmux with:

bind-key -n F2 new-window -c "#{pane_current_path}" \; rename-window "-"
bind-key -n C-F2 display-panes \; split-window -h -c "#{pane_current_path}"
bind-key -n S-F2 display-panes \; split-window -v -c "#{pane_current_path}"
# 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_current_path}"
bind-key -n M-S-F8 new-window -c "#{pane_current_path}" -k "byobu-layout restore; clear; $SHELL"
bind-key -n S-F12 source $BYOBU_PREFIX/share/byobu/keybindings/f-keys.tmux.disable \; source $BYOBU_CONFIG_DIR/f-keys.tmux.disable \; display-message "Byobu F-keys: DISABLED"

2) Create ~/.byobu/f-keys.tmux.disable with:

bind-key -n S-F12 source $BYOBU_PREFIX/share/byobu/keybindings/f-keys.tmux \; source $BYOBU_CONFIG_DIR/f-keys.tmux \; display-message "Byobu F-keys: ENABLED"

3) Add to ~/.byobu/.tmux.conf:

source-file $BYOBU_CONFIG_DIR/f-keys.tmux

4) Add to ~/.byobu/keybindings.tmux:

# screen ^C c
unbind ^C
bind ^C new-window -c "#{pane_current_path}"
unbind c
bind c new-window -c "#{pane_current_path}"

# split -v |
unbind |
bind | split-window -c "#{pane_current_path}"

Changed in byobu:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers