How do I get the current directory into my prompt?

Hi there ..

How do I get the current directory into my prompt?
I am using
Sun Microsystems Inc.   SunOS 5.9       Generic May 2002
Solaris 9

and my favorite SHELL is
bash-2.05$

I need to have my current directory into my prompt.

Regards,
Alim
alim_mazeAsked:
Who is Participating?
 
ravenplCommented:
I'm sorry, try: export PS1="$(ppwd \l)\u@\h:\w>"
0
 
ravenplCommented:
try this in Your $HOME/.bashrc
export PS1="${USER}@${HOST}:${PWD} > "
see what happend
0
 
alim_mazeAuthor Commented:
it works perfectly ..
thanks a lot ravenpl
Regards,
Alim
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.