From owner-freebsd-questions Tue Jul 30 03:16:53 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA05342 for questions-outgoing; Tue, 30 Jul 1996 03:16:53 -0700 (PDT) Received: from mail.EUnet.hu (mail.eunet.hu [193.225.28.100]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id DAA05337 for ; Tue, 30 Jul 1996 03:16:50 -0700 (PDT) Received: by mail.EUnet.hu, id MAA16258; Tue, 30 Jul 1996 12:16:34 +0200 Received: by CoDe.CoDe.hu (LAA01945); Tue, 30 Jul 1996 11:58:44 GMT From: Gabor Zahemszky Message-Id: <199607301158.LAA01945@CoDe.CoDe.hu> Subject: Re: Symbolic links or batch files To: freebsd-questions@freebsd.org Date: Tue, 30 Jul 1996 11:58:44 +0000 (GMT) Cc: jlambert@trout.inet-images.com, dgy@rtd.com In-Reply-To: <199607300604.XAA21534@seagull.rtd.com> from "Don Yuniskis" at Jul 29, 96 11:04:41 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > > How yould wowuld I gou about creating a file or link that > > runs colorls -G instead of ls? > > (sorry, no backspace key.) > > first, why don't you run 'stty erase ^H' to get your backspace key > working, eh? :> > > as for colorls, create an alias for it: > myls() colorls -G $@ Only for correctness: 1) this is not an alias, it looks like a shell-function, working on sh/ksh/pdksh/bash/zsh and the correct way is: ls() { colorls -G "$@" ; } or ls() colorls -G "$@" or on everything but sh: function ls { colorls -G "$@" } 2) you can make alias, too: a) on sh/ksh/pdksh/bash/zsh alias ls='colorls -G' b) on csh/tcsh alias ls colorls -G or: alias ls colorls -G \!\* -- Gabor Zahemszky -:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:- Earth is the cradle of human sense, but you can't stay in the cradle forever. Tsiolkovsky