Hi Uwe,

On 2016-08-04 Thu 00:19 AM |, Uwe Werler wrote:
> 
> PS1='\h:$(_pwd)\\$ '
> 

You may have already seen this in ksh(1):
PS1
...
\W The basename of the current working directory. $HOME is abbreviated as `~'.

e.g: PS1="<\u@\h:\W \j> \\$ "

<hostmaster@teak:~ 0>$ sleep 5 &
[1] 24386
<hostmaster@teak:~ 1>$ cd /var/unbound
<hostmaster@teak:unbound 1>$ print $PS1
<\u@\h:\W \j>\$

Cool,
-- 
Craig Skinner | http://linkd.in/yGqkv7

Reply via email to