Operating System - HP-UX
1834206 Members
2423 Online
110066 Solutions
New Discussion

How to set PS1 to display current working directory?

 
Zhang Zhao gui
Frequent Advisor

How to set PS1 to display current working directory?

May I know how should I set PS1 to display current working directory and also
include current time as
the command prompt?
1 REPLY 1
Grant Penness_2
Occasional Advisor

Re: How to set PS1 to display current working directory?

I use

export PS1="`logname`@`hostname`|["'${PWD}'"] "

not sure about the time bit thought - sorry