Initial window does not respect default-command
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
byobu |
Fix Released
|
Medium
|
Unassigned |
Bug Description
I'm using byobu with tmux. I have configured ~/.byobu/.tmux.conf to give me a login shell in each new window:
set -g default-command "bash -l"
However, the initial window created for a new byobu session does not run this default-command. The initial window is not a login shell. To make things more obvious for testing purposes, try setting the default-command to ssh into some host.
This initial-window problem does not occur when running tmux directly, but only when using byobu to start tmux.
Having the default-command run in all shells is important. In my case, tools like ruby's rvm that depend on a login shell do not work. A handful of others have complained about the same thing in the more recent comments on https:/
$ byobu -v
byobu version 5.86
tmux 1.9
Related branches
description: | updated |
Changed in byobu: | |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in byobu: | |
status: | Fix Committed → Fix Released |
Okay, so the fix is to inspect ~/.byobu/.tmux.conf and check if the user has specified a default-command or a default-shell, and if so, then short circuit byobu's own logic.