From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?QmrDtnJuIEjDtmZsaW5n?= Subject: Re: (Ab?)using aliases to set ls' and others' colours Date: Wed, 4 Jul 2018 20:01:15 +0200 Message-ID: <20180704200115.750f8ccd@alma-ubu> References: <20180703101553.702b0b00@alma-ubu> <8736x0fvbr.fsf@lapdog.tobias.gr> <87zhz8eeh1.fsf@lapdog.tobias.gr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/7qOi5wlZqeQAAhfT11=OLKb"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35749) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fam5i-0005UY-VX for guix-devel@gnu.org; Wed, 04 Jul 2018 14:01:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fam5e-0006Je-4l for guix-devel@gnu.org; Wed, 04 Jul 2018 14:01:23 -0400 Received: from m4s11.vlinux.de ([83.151.27.109]:46592 helo=bjoernhoefling.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fam5d-0006IR-TS for guix-devel@gnu.org; Wed, 04 Jul 2018 14:01:18 -0400 In-Reply-To: <87zhz8eeh1.fsf@lapdog.tobias.gr> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Tobias Geerinckx-Rice Cc: guix-devel --Sig_/7qOi5wlZqeQAAhfT11=OLKb Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, 03 Jul 2018 13:38:34 +0200 Tobias Geerinckx-Rice wrote: > Tobias Geerinckx-Rice wrote: > > Bj=C3=B6rn H=C3=B6fling wrote: =20 > >> ls has a colored output. Nice. > >> ls | less has ugly escape sequences. Only ls --color=3Dno | less > >> works. =20 [..] >=20 > Perhaps it was assumed that =E2=80=98--color=E2=80=99 on its own implies = =E2=80=98auto=E2=80=99=20 > instead of =E2=80=98always=E2=80=99 (I could see how that could happen)? = Or=20 > =E2=80=98--color=3Dauto=E2=80=99 is too cautious, and disables colour in = a situation=20 > where the author expects it? In that case I don't think the=20 > trade-off is worth it. Just for reference: Here is what my Ubuntu has in /etc/skel/.bashrc: # enable color support of ls and also add handy aliases if [ -x /usr/bin/dircolors ]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(= dircolors -b)" alias ls=3D'ls --color=3Dauto' #alias dir=3D'dir --color=3Dauto' #alias vdir=3D'vdir --color=3Dauto' alias grep=3D'grep --color=3Dauto' alias fgrep=3D'fgrep --color=3Dauto' alias egrep=3D'egrep --color=3Dauto' fi [..] > Oh, I don't know. >=20 > This is the kind of trivial bug that would've put me off a distro,=20 > I guess. Yeah, it's one of those nasty little things that are totally silly but on the other hand are expected to "just work". Bj=C3=B6rn --Sig_/7qOi5wlZqeQAAhfT11=OLKb Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAls9C2wACgkQvyhstlk+X/1tAQCgsuDtY4GEVs/uQGw7iwRSzoNW btwAnjpsXLH3Bev1pOdX+mqCHKFzVHXr =gyAj -----END PGP SIGNATURE----- --Sig_/7qOi5wlZqeQAAhfT11=OLKb--