www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/05/12:35:13

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "John Morrison" <john DOT r DOT morrison AT ntlworld DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: HOME
Date: Mon, 5 May 2003 17:35:04 +0100
Message-ID: <NCEBJJFMCAOKNNABBFIMCEJMDKAA.john.r.morrison@ntlworld.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
In-Reply-To: <Pine.GSO.4.44.0305051153440.25128-100000@slinky.cs.nyu.edu>
Importance: Normal

> From: Igor Pechtchanski [mailto:pechtcha AT cs DOT nyu DOT 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 AT 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 AT 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 AT cygwin DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019