This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: skel ~/.bashrc (was RE: HOME)
- From: "Hannu E K Nevalainen \(garbage mail\)" <garbage_collector at telia dot com>
- To: <cygwin at cygwin dot com>
- Date: Mon, 5 May 2003 22:13:15 +0200
- Subject: RE: skel ~/.bashrc (was RE: HOME)
> From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.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