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: "Hannu E K Nevalainen \(garbage mail\)" To: Subject: RE: skel ~/.bashrc (was RE: HOME) Date: Mon, 5 May 2003 22:13:15 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Priority: 3 (Normal) X-MSMail-Priority: Normal In-Reply-To: X-Mimeole: Produced By Microsoft MimeOLE V5.50.4925.2800 Importance: Normal Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id h45KES522595 > From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com]On Behalf > Of Igor Pechtchanski --8<-- > # Don't ring bell on completion > # or, as Hannu E. K. Nevalainen puts it, > ## DON'T EVER *BEEP* AT ME! > set bell-style none --8<-- |-} Imagine, *30* inexperienced students sitting down at bash prompt (Linux), typing commands and pressing TAB for filename completion... getting it wrong several times per command; *BEEP**BEEP*...*BEEP**BEEP**BEEP*...*BEEP**BEEP**BEEP**BEEP*...*BEEP*... ..*BEEP**BEEP**BEEP*...*BEEP*... This gets irritating real soon... ;-[ *GROAN* Back to "business": Here follows a shell function which "replaces" /bin/ls with something that displays "control chars" (i.e. diacritcs, 8-bit chars) ( $ info Bash # says that shell functions are preferable to aliases... anyone who can explain? ) -- .profile or .bashrc ? -- # This is necessary to make ls display national characters... # and have some style. May I suggest 112 columns in rxvt? ls () { command ls \ --show-control-chars \ --color \ --classify \ --no-group \ $@; } -- end -- Last but not least there is a problem with $SHELL, if it is set as per WIN98-DOS at the time when "startx" is executed; startx won't do its thing. Dunno if the problem is relevant for other WIN-versions (seems not for Win2K). -- .profile or .bashrc? -- if echo "$SHELL " | grep -i -c command.com >/dev/null then export SHELL=/bin/bash echo -e "\n\"command.com\" found in \$SHELL, \$SHELL contents reset." fi -- end -- /Hannu E K Nevalainen, Mariefred, Sweden