Re: current directory
Daniel L Newhouse <[email protected]> Tue, 20 Apr 2021 12:52:34 -0500
| Newsgroups | alt.comp.cygwin |
|---|---|
| Organization | Forte - www.forteinc.com |
| Message-ID | <[email protected]> |
On Mon, 19 Apr 2021 10:02:42 -0500, Daniel L Newhouse <[email protected]> wrote: .profile is the login script. PS1 is called a "prompt string." >On Sat, 17 Apr 2021 23:48:43 -0500, Daniel L Newhouse ><[email protected]> wrote: > >.bashrc in the home directory is the startup script. > >>On Sun, 28 Mar 2021 19:52:47 -0500, Daniel L Newhouse >><[email protected]> wrote: >> >>"\s-\v\w$" is the best it will ever be, a $ before the prompt. >> >> >>>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.