Operating System - HP-UX
1836429 Members
2881 Online
110100 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