screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: .bash_profile not executing?


From: Micah Cowan
Subject: Re: .bash_profile not executing?
Date: Fri, 22 Jun 2007 01:49:28 -0700
User-agent: Thunderbird 1.5.0.12 (X11/20070604)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Schiz0 wrote:
> Hey everyone,
> 
> I'm on FreeBSD-6.2-STABLE, using Screen version 4.00.03 (FAU) 23-Oct-06
> 
> I log into my box using PuTTy from a Windows machine. The shell I'm
> using is Bash. The prompt is set via .bash_profile to:
> "address@hidden Jun 21 03:32 PM][bash: ~/.irssi/scripts] $"
> (Not that the prompt has colors in it for the username and hostname)
> 
> But when I run "screen," the prompt is:
> "address@hidden ~/.irssi/scripts]$"
> With no color.
> 
> For some reason, it seems like screen is going back to the default
> prompt. My .bash_profile is:

<snip>

.bash_profile is only run by login shells. The shell that is first run
when you log in is a login shell; any others are not (including any run
by screen), and will source .bashrc instead. The typical set up is to
place all normal customizations in .bashrc, and have .bash_profile
source .bashrc.

- -Micah
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGe40Y7M8hyUobTrERArZNAJ4vMirkh4CzWXEuSz7RNsIqjtmgdwCeN+NZ
PWZKi+ziQ10nrr0x3VAAgPU=
=qiRM
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]