I searched the net and many people complained that
tmux wasn't executing their
.bashrc. The solution thats suggested everywhere was to source
.bashrc from within
tmux launches bash as a login shell and we can be sure that
.bash_profile is executed for login shells.
Unfortunately, even this solution isn't working for me. I tried duplicating commands/aliases in both
.bashrc. Even that doesn't seem to work. I don't have a
.tmux.conf file at all if that would mess up anything.
.bash_profile looks like
[pmanjunath 12:29:13 ~]$ cat .bash_profile source ~/.bashrc
.bashrc looks like
[pmanjunath 12:29:36 ~]$ cat .bashrc PS1="\[\e[35m\][\u \t \w]$ \[\e[0m\]" export CSCOPE_EDITOR=vim PATH=$PATH:~/bins CSCOPE_DB=~/cscope/cscope.out; export CSCOPE_DB alias cs='`which cscope` -d' alias fs='cd /data/fs' alias real='cd /data/debug/src/prog/realstore' alias mnt='cd /mnt/tintri' alias psg='ps -eaf | grep realstore' set -o vi
tmux screws my
PS1 like below unless I rerun
EDIT A strange thing happened. I tried to debug tmux by hooking it up with
strace. What I saw was, tmux was unable to find some
libevent2 library. So installed it like
rpm -ivh /auto/toolchain/rpms/fedora12/libevent2-2.0.21-6.tt.x86_64.rpm
After this, tmux started executing my bash profile BUT only when run with
strace!! If I just say,
tmux, the same old problem exists! I really dont know what magic is
strace pulling off.