.bash_profile is not read unless you start a login shell. That default-command line makes tmux not start a login shell.
You probably didn't restart tmux once you removed it. Or do this instead: C-b : set -g default-command "" On Sat, Jan 21, 2012 at 01:51:28PM +0100, Carlos Villuendas Zambrana wrote: > Hi, > > In my ~/.bash_profile ( Mac Os Lion ),I have this line to config my promt: > > # prompt > PS1='\u@\h \w\n\[\033[01;32m\]$(__git_ps1 "(%s) > ")\[\033[01;31m\]??\[\033[01;37m\] ' > > ANd this work for my normal terminal, the problem came when I start tmux, i > guess that luch a new bash console who replace the original bash which my > original prompt. > > What do you think? > > > El 21/01/2012, a las 13:46, SamLT escribi??: > > > > > > > On Sat, Jan 21, 2012 at 01:33:11PM +0100, Carlos Villuendas Zambrana wrote: > >> Thx all, > >> > >> I removed that line but nothing happen yet lost my prompt when i start > >> tmux ... > >> > >> That is so much annoyed because in my prompt i have information about my > >> git brach and others things > > > > Ok, IMO, this is not really related to tmux and more to your shell > > initialisation files(eg: ~/.bashrc, ~/.profile and so on). > > Find where your prompt is defined, understand how, and then fix it:) > > > > Your conf files may be using the TERM env var to decide which prompt to > > set, check this first. > > > > > >> > >> Any idea ? > >> > >> Thx a lot. > >> > >> > >> El 21/01/2012, a las 11:25, Nicholas Marriott escribi??: > >> > >>> Comment out this line: > >>> > >>> set-option -g default-command "exec /bin/bash" > >>> > >>> > >>> On Sat, Jan 21, 2012 at 11:09:53AM +0100, Carlos Villuendas Zambrana > >>> wrote: > >>>> Hi all again! > >>>> Since i can load .tmux.conf file, the bindings key work properly, but i > >>>> have the problem that tmux change my prompt console with the generic > >>>> "bash-3.2$" ... > >>>> I am used this > >>>> one [1]http://files.floriancrouzat.net/dotfiles/.tmux.conf tmux.conf > >>>> file. > >>>> But i dont see any command that can affect to my prompt. > >>>> Can you help me? > >>>> Thx > >>>> > >>>> References > >>>> > >>>> Visible links > >>>> 1. http://files.floriancrouzat.net/dotfiles/.tmux.conf > >>> > >>>> ------------------------------------------------------------------------------ > >>>> Try before you buy = See our experts in action! > >>>> The most comprehensive online learning library for Microsoft developers > >>>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > >>>> Metro Style Apps, more. Free future releases when you subscribe now! > >>>> http://p.sf.net/sfu/learndevnow-dev2 > >>> > >>>> _______________________________________________ > >>>> tmux-users mailing list > >>>> tmux-users@lists.sourceforge.net > >>>> https://lists.sourceforge.net/lists/listinfo/tmux-users > >>> > >> > >> > >> ------------------------------------------------------------------------------ > >> Try before you buy = See our experts in action! > >> The most comprehensive online learning library for Microsoft developers > >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > >> Metro Style Apps, more. Free future releases when you subscribe now! > >> http://p.sf.net/sfu/learndevnow-dev2 > >> _______________________________________________ > >> tmux-users mailing list > >> tmux-users@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/tmux-users > ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users