Re: current directory
Daniel L Newhouse <[email protected]> Wed, 31 Mar 2021 14:01:06 -0500
| Newsgroups | alt.comp.cygwin |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 28 Mar 2021 19:52:47 -0500, Daniel L Newhouse <[email protected]> wrote: Ideally, you would see a '$' at the prompt for absolute path and a '~' at the prompt for relative path. Depending on whether or not you are in you home directory. I have only seen this work on Solaris. >On Sun, 28 Mar 2021 18:40:31 -0500, Daniel L Newhouse ><[email protected]> wrote: > >The fact that there is no startup script, however, means that you have >to change PS1 every time you restart cygwin! > >I also vote for Minix compatibility. > >>On Sun, 28 Mar 2021 18:35:48 -0500, Daniel L Newhouse >><[email protected]> wrote: >> >>>K, the syntax is "\s-\v\w". What I posted was a typo. Parts of these >>>Kindle books aren't searchable. Try searching on "PS1" to find it in >>>Bash from O'Reilly. >> >> >>Also, IIRC, ending the prompt with a '~' indicates a working >>directory, which is normal, whereas ending it with a '$' indicates an >>absolute path.