[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: bash 3.1 gotcha
- From: Chris Adams <cmadams hiwaay net>
- To: fedora-devel-list redhat com
- Subject: Re: bash 3.1 gotcha
- Date: Thu, 12 Jan 2006 13:31:55 -0600
Once upon a time, Callum Lerwick <seg haxxed com> said:
> For many years, I have had a fancy bash prompt, that contains this:
> ${PWD/#$HOME/~} This replaces your home dir with a tilde. However, with
> bash 3.1, it stopped working:
Why not just use the bash PS1 "\w" escape which does the same thing?
Much easier and won't break (unless there's a bug). See the PROMPTING
secion of the bash man page.
--
Chris Adams <cmadams hiwaay net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]