Date: Tue, 30 Jul 1996 11:58:44 +0000 (GMT) From: Gabor Zahemszky <zgabor@CoDe.hu> To: freebsd-questions@freebsd.org Cc: jlambert@trout.inet-images.com, dgy@rtd.com Subject: Re: Symbolic links or batch files Message-ID: <199607301158.LAA01945@CoDe.CoDe.hu> In-Reply-To: <199607300604.XAA21534@seagull.rtd.com> from "Don Yuniskis" at Jul 29, 96 11:04:41 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> > > 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 <zgabor@CoDe.hu> -:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:- Earth is the cradle of human sense, but you can't stay in the cradle forever. Tsiolkovsky
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607301158.LAA01945>