On 16/03/2021 10:23 am, Alex fxmbsw7 Ratchev wrote:
.. ?

# root ~/ogt2/confs ( 0 @ 2 ) boost ( 42098 @ 1615890149.004363 ==
2021-03-16+11:22:2920 ) #
PWD=/bla
# root /bla ( 0 @ 2 ) boost ( 42148 @ 1615890199.128728 ==
2021-03-16+11:23:1920 ) #


Yes, it seems \w (and \W) take their values from $PWD
If you want to register the current directory in $PS1 regardless, change \w to `pwd`

--
Chris Elvidge
England


Reply via email to