Operating System - HP-UX
1834458 Members
2686 Online
110067 Solutions
New Discussion

Re: 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