swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A thought for readme


From: Marcus G. Daniels
Subject: Re: A thought for readme
Date: 01 May 1998 11:17:12 -0700

>>>>> "PH" == Parviez HosseiniC <address@hidden> writes:

PH> BTW, exactly how do you set environment variables in Cygnus?

Put:
  
   export PS1='whateveryouwant'

in the .bash_login file.

There are special escape-codes for different bits of shell info. 
Here is the relevant section of the Bash manual quoted for your convenience:

`\a'
     a bell character.

`\d'
     the date, in "Weekday Month Date" format (e.g., "Tue May 26").

`\e'
     an escape character.

`\h'
     the hostname, up to the first `.'.

`\H'
     the hostname.

`\n'
     newline.

`\s'
     the name of the shell, the basename of `$0' (the portion following
     the final slash).

`\t'
     the time, in 24-hour HH:MM:SS format.

`\T'
     the time, in 12-hour HH:MM:SS format.

`\@'
     the time, in 12-hour am/pm format.

`\v'
     the version of Bash (e.g., 2.00)

`\V'
     the release of Bash, version + patchlevel (e.g., 2.00.0)

`\w'
     the current working directory.

`\W'
     the basename of `$PWD'.

`\u'
     your username.

`\!'
     the history number of this command.

`\#'
     the command number of this command.

`\$'
     if the effective uid is 0, `#', otherwise `$'.

`\nnn'
     the character corresponding to the octal number `nnn'.

`\\'
     a backslash.

`\['
     begin a sequence of non-printing characters.  This could be used to
     embed a terminal control sequence into the prompt.

`\]'
     end a sequence of non-printing characters.

PH> So how do you then change the path variable to include ./?

Put:

   PATH=$PATH:.

in the .bash_login file.


                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.
                  ==================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]