Can someone tell me how do i set my current working directory in my prompt?
Note: I dont want to use env variable PWD and using `pwd` gives me only my home directoy. suggest a different way ?
I use /bin/sh
thanks!!
Can someone tell me how do i set my current working directory in my prompt?
Note: I dont want to use env variable PWD and using `pwd` gives me only my home directoy. suggest a different way ?
I use /bin/sh
thanks!!
With bash :
$ pwd
/home/FORUM/Unix
$ export PS1='\w> '
~/FORUM/Unix> cd /etc
/etc> cd -
/home/FORUM/Unix
~/FORUM/Unix> export PS1='\W> '
Unix> cd ..
FORUM> cd /etc
etc> cd
~>
Jean-Pierre.
\w and $PWD doesnt work for me,
I have raised posted this already, but still looking for a solution to it. rather contacting tha server ADMINS