Date: Wed, 19 Jan 2005 15:22:52 +0000 From: Daniel Bye <freebsd-questions@slightlystrange.org> To: freebsd-questions@freebsd.org Subject: Re: Tab to Auto-Complete + .... Message-ID: <20050119152246.GA63214@catflap.slightlystrange.org> In-Reply-To: <200501191432.42281.list-freebsd-2004@morbius.sent.com> References: <200501182030.52598.shinjii@virusinfo.rdksupportinc.com> <20050118120305.GB75927@catflap.slightlystrange.org> <200501182210.29827.shinjii@virusinfo.rdksupportinc.com> <200501191432.42281.list-freebsd-2004@morbius.sent.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--VS++wcV0S1rZb1Fb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 19, 2005 at 02:32:41PM +0000, RW wrote: > On Tuesday 18 January 2005 12:10, Warren wrote: > > I changed the shell type using: chsh -s /bin/csh >=20 > I think you want /bin/tcsh/ which is the enhanced version of csh. Inciden= tly I=20 It's the same thing: --->$ ls -i /bin/csh /bin/tcsh=20 24836 /bin/csh* 24836 /bin/tcsh* > think tcsh is the default for root, not csh, which is probably why=20 > auto-completion works for you in root. root:*:0:0:Charlie &:/root:/bin/csh File completion works because `set filec' is set in /.cshrc > It's recommended that you stick to shells in /bin for root, and tcsh is = the=20 > best of these. For non-root account you have more choice, bash and ksh ar= e=20 > popular. This is true enough. If you really want to use a different shell, then you could probably write a conditional test to go in the default shell's startup files. For example, to run bash, put a conditional test in =2Ecshrc to check that bash can be invoked without errors. If so, exec() it. If not, then just continue with csh. Voila. You have a bash shell,= =20 without having to change root's default shell. I am afraid I can't help=20 with the syntax, as I don't use csh. HTH Dan --=20 Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3B9D 8BBB EB03 BA83 5DB4 3B88 86FC F03A 90A1 BE8F _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ --VS++wcV0S1rZb1Fb Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFB7ntGhvzwOpChvo8RAjy0AKCsqT8/acc7yO4KFW0bhGr2OwbV3QCbB/g2 /NvGYv012XNP6ZC4mmm830w= =tMwO -----END PGP SIGNATURE----- --VS++wcV0S1rZb1Fb--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050119152246.GA63214>