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 bashto your.tmux.conf. (.bash_profileis only read by login shells; non-login shells ignore it). – jw013 Jan 18 '13 at 15:34tmuxfrom withintmux(rather than tinkering the.*profilefiles), but it requires a-gflag to be effective, as inset -g default-command zsh– Dalker Oct 21 '13 at 21:34