[mythtv-users] xterm prompt configuration
Michael T. Dean
mtdean at thirdcontact.com
Thu Jul 23 23:54:34 UTC 2009
On 07/23/2009 07:06 PM, Jarod Wilson wrote:
> On Jul 23, 2009, at 5:40 PM, Eric Sharkey wrote:
>> On Thu, Jul 23, 2009 at 5:00 PM, Jarod Wilson wrote:
>>> Possibly. Possibly an xterm thing too. Seems $something isn't
>>> sourcing in
>>> profile bits when a new shell is spawned. It behaves just like
>>> gnome-terminal here on my workstation, prompt looks the same. No
>>> clue what's
>>> up...
>> It may be that you're setting the prompt in your .bashrc when you
>> really need to be setting it in your .bash_profile. I always need to
>> re-read the man page to remember which is which.
>>
>> It's simplest to just symlink one to the other if you don't need to
>> distinguish these cases.
> Default .bash_profile in my distro of choice is what sources .bashrc
> if ir exists.
~/.bash_profile is only (normally) sourced for login shells (looks for
~/.bash_profile, then ~/.bash_login, then ~/.profile in that order and
uses the first it finds). For interactive non-login shells, it
sources ~/.bashrc. (Though this behavior may be changed by some distros
or whatever.)
So, either put the PS1 definition in ~/.bashrc or change the
Alt-<whatever> binding in ~/.fluxbox/keys to do an xterm -ls (for login
shell).
Mike
More information about the mythtv-users
mailing list