Date: Fri, 3 Oct 2008 08:27:27 -0700 From: Jeremy Chadwick <koitsu@FreeBSD.org> To: Andreas Davour <ante@Update.UU.SE> Cc: freebsd-questions@freebsd.org Subject: Re: A question about the root shell Message-ID: <20081003152727.GA32281@icarus.home.lan> In-Reply-To: <Pine.LNX.4.64.0810031717150.26445@Psilocybe.Update.UU.SE> References: <Pine.LNX.4.64.0810031717150.26445@Psilocybe.Update.UU.SE>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Oct 03, 2008 at 05:20:32PM +0200, Andreas Davour wrote: > I'm not a csh user, in fact I hate it. Though, I use it as it is out of > the box for root so I'm reminded I'm not an unpriv user any longer. > > That being said I'm getting annoyed by the fact that the root shell is > always showing me all the "dot files" all the time. It clutters up the > terminal with so many files I don't see the ones I want to work with! Is > there a way to turn this feature off? > > I even tried to start a bash and alias ls to ls -F but it still kept > showing me the dot-files I'd rather not see. This is not a shell issue, as it applies to csh, sh, and bash. The "problem" is FreeBSD's /bin/ls. See the ls(1) man page, specifically the -A option description. What you want is the -I flag. Place the following in /root/.cshrc to get what you want: alias ls /bin/ls -I -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081003152727.GA32281>