Re: current directory

Daniel L Newhouse <[email protected]> Wed, 21 Apr 2021 20:36:36 -0500
Newsgroups alt.comp.cygwin
Organization Forte - www.forteinc.com
Message-ID <[email protected]>
On Wed, 21 Apr 2021 20:04:17 -0500, Daniel L Newhouse
<[email protected]> wrote:


ls -al is the way to view files in Unix.  That way you can see your
startup scripts and the write permissions on your files.  Change the
write permissions with chmod.


>On Tue, 20 Apr 2021 12:52:34 -0500, Daniel L Newhouse
><[email protected]> wrote:
>
>There is a web site on all the prompt strings
>
>https://idojo.co/how-to-set-a-custom-bash-shell-prompt-string-ps0-ps1-ps2-ps3-ps4-in-linux/
>
>PS1    The  value  of  this parameter is expanded (see PROMPTING
>below)
>       and used as the primary prompt string.   The  default  value is
>       ``\s-\v\$ ''.
>PS2    The  value of this parameter is expanded as with PS1 and used
>as
>       the secondary prompt string.  The default is ``> ''.
>PS3    The value of this parameter is used as the prompt for the
>select
>       command (see SHELL GRAMMAR above).
>PS4    The  value  of  this  parameter  is expanded as with PS1 and
>the
>       value is printed before each command bash displays during an
>ex-
>       ecution trace.  The first character of the expanded value of
>PS4
>       is replicated multiple times, as necessary, to indicate
>multiple
>       levels of indirection.  The default is ``+ ''.
>
>
>>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.