make and change into a directory

Sy Ali sy1234-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Sat May 20 11:39:21 UTC 2006


On 5/19/06, Behdad Esfahbod <behdad-26n5VD7DAF2Tm46uYYfjYg at public.gmane.org> wrote:
> On Fri, 19 May 2006, Sy Ali wrote:
>
> > I guess my question is:
> > How can I make an alias do two things?
>
> Define it as a function instead of an alias:
>
> mcd() {
>         mkdir "$1"
>         cd "$1"
> }

Woohoo!  =)
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list