I have a script in my .bash_profile that prompts for X sessions to boot. When I launch tmux, I get this prompt that I had only intended for the TTY login.
Is there something I can put in .bash_profile that will simply run bash if it is part of tmux? That is, can I check with bash if .bash_profile is being read within tmux?
set-option default-command bash
to your.tmux.conf
. (.bash_profile
is only read by login shells; non-login shells ignore it). – jw013 Jan 18 '13 at 15:34tmux
from withintmux
(rather than tinkering the.*profile
files), but it requires a-g
flag to be effective, as inset -g default-command zsh
– Dalker Oct 21 '13 at 21:34