> Hi, > > On Hamm, if I login as root or while logged in as myself do a "su" > then my shell prompt shows the host and current directory. > > When I am logged in as myself my prompt is just a $ > > I much prefer to see the current directory in my prompt. So how do > I change it? > > My guess was that the .bashrc in my home directory needed the > same PS1 environment as the .bashrc in the root directory so I > added > > export PS1='\h:\w\$ '
You want to put this line in BOTH .bashrc (for non-login shells) and .bash_profile (for login shells). The manpage bash(1) explains which files are loaded when. Julian =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Julian Gilbey Email: [EMAIL PROTECTED] Dept of Mathematical Sciences, Queen Mary & Westfield College, Mile End Road, London E1 4NS, ENGLAND