This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: HOME


> From: Igor Pechtchanski [mailto:pechtcha@cs.nyu.edu]
> John,
>
> Some notes below.

Ta :)

> On Mon, 5 May 2003, John Morrison wrote:

> > MANPATH="/usr/man:/usr/local/man:/usr/autotool/devel/man:$MANPATH"
>            ^^^^^^^^^^^^^^^^^^^^^^^^
> This should be "/usr/local/man:/usr/man:".  This bug was in my
> /etc/profile as well; I just fixed it.

Fixed

> > export MANPATH
> > case "$0" in
> > bash     | -bash     | */bash | \
> > bash.exe | -bash.exe | */bash.exe )
> >   # Set a HOSTNAME variable
> >   HOSTNAME=`hostname`
> >   export HOSTNAME
>     ^^^^^^^^^^^^^^^^^^^
> The two lines above should be outside of the "bash" case, as they are also
> used in the "ksh" case.

ksh uses typeset (I don't use ksh, what's typeset?) I assumed
it was the equiv.

> >
> >   # Set a default prompt of: user@host and current_directory
> >   PS1='\[\033]0;\w\007
> >   \033[32m\]\u@\h \[\033[33m\w\033[0m\]
> >   $ '
> >   ;;
> > ksh*     | -ksh*     | */ksh* | \
> > ksh*.exe | -ksh*.exe | */ksh*.exe )
> >   # Set a HOSTNAME variable
> >   typeset -l HOSTNAME

What's this do?

> >   # Set a default prompt of: user@host and current_directory
> >   PS1='^[]0;${PWD}^G
> >   ^[[32m${USER}@${HOSTNAME} ^[[33m${PWD}^[[0m
> >   $ '
> >   ;;
> > sh     | -sh     | */sh \
> > sh.exe | -sh.exe | */sh.exe )
> >   # Set a simple prompt
> >   PS1='$ '
> >   ;;
> > * )
> >   echo "Sorry, this shell has no default setup."
> >   echo "Please contact cygwin@cygwin.com with the shell details"
> >   echo "and what you would like set as reasonable defaults."
>           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> I'm thinking, should /etc/csh.login and /etc/csh.cshrc live in this
> package too?  Also, does "zsh" use /etc/profile, or something else?

I don't know, I only use bash, open for discussion :)

J.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]