| www.delorie.com/archives/browse.cgi | search |
| 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: | "Hannu E K Nevalainen \(garbage mail\)" <garbage_collector AT telia DOT com> |
| To: | <cygwin AT cygwin DOT com> |
| Subject: | RE: skel ~/.bashrc (was RE: HOME) |
| Date: | Mon, 5 May 2003 22:13:15 +0200 |
| Message-ID: | <NGBBLLIAMFLGJEOAJCCEIEEOCPAA.garbage_collector@telia.com> |
| MIME-Version: | 1.0 |
| X-Priority: | 3 (Normal) |
| X-MSMail-Priority: | Normal |
| In-Reply-To: | <Pine.GSO.4.44.0305051216360.25128-100000@slinky.cs.nyu.edu> |
| X-Mimeole: | Produced By Microsoft MimeOLE V5.50.4925.2800 |
| Importance: | Normal |
| 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<--
<grin> |-}
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |