Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" To: Subject: RE: HOME Date: Mon, 5 May 2003 17:35:04 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: 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/