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

Getting custom prompts to work under v1.3.1



Hello again.
First off, I'd like to thank Mr. Pitts and Mr. Maze, who very kindly answered my previous mail.

Now, (and a little more to the point :) here 0is my present dilemma:

I have been a long time DOS user, and I'm quite accustomed to having a prompt with the path you're in, like this:
C:\>
And when one changes a directory, I'm used to seeing the prompt reflect that, like so:
C:\>cd apps
C:\apps>
So I tried to do the same thing under linux. I edited my .bash_profile (which should give you an idea of what type of shell I'm using :) and added this:
PS1="$PWD> "
Because, after all, typing "declare" showed me that PWD was the variable for my current directory. I logged out, then back in (because source .bash_profile is starting to act funny on my system), and got a very nice prompt:
/home/tlineman>
However, when I "cd ..", my prompt remained the same. When I typed source .bash_profile, my prompt changed and showed
/home/>
So now I assume that I have to have some type of replacement for cd that will do something like this:
cd  $*                                   <--(thanks Dave!)
source .bash_profile

Any suggestions?

Tom


P.S. Thanks to all who replied, but when I tried mounting my cdrom drive, I got an error message. Phooey. Browsing through /dev/ I decided to try sbpcd0. (In case you were wondering, I asked if a slave device on a primary IDE controller would be /dev/hdb) It worked when I mounted it, but I have really no idea why. (Not that I'm complaining, of course)

Anyhow, would adding a line in /etc/fstab help me when I mount a file system not mentioned in there? Thanks.


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


Reply to: