Originally posted by: SystemAdmin
I would like to have a PS1 prompt such that I get the following prompt everytime
PWD
>
When we press enter it has to first show the current working directory followed by a new line having just '>' symbol.
Eg:
>
> ls
a b c dir1
/tmp
> cd dir1
/tmp/dir1
> cd dir2
/tmp/dir1/dir2
> cd dir3
/tmp/dir1/dir2
>
Please advice