#46019: Bash completion fails when in tmux or screen ------------------------------+---------------------- Reporter: audvare@… | Owner: raimue@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: bash-completion | ------------------------------+---------------------- Comment (by raimue@…): tmux uses various ways to determine the shell to start, see the tmux(1) man page at the description of the `default-shell` option. However, also note your `.bashrc` will never be read by a login shell, as bash executed as a login shell only evaluates `.bash_profile`. It is up to your own configuration to either `source .bashrc` from within `.bash_profile`, or copy the same instructions you currently use in your `.bashrc` also to your `.bash_profile`. This is explained in detail in the section `INVOCATION` in the bash(1) man page. Unfortunately, I don't think there is much we can do about these peculiarities. Explaining all that in a note of the port would be too much information for most users. Maybe we could add some bits about `default-shell` for tmux in the additional documentation at [wiki:howto/bash-completion] and link to that from the notes. -- Ticket URL: <https://trac.macports.org/ticket/46019#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X