make and change into a directory
Behdad Esfahbod
behdad-26n5VD7DAF2Tm46uYYfjYg at public.gmane.org
Sat May 20 03:50:15 UTC 2006
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"
}
--behdad
http://behdad.org/
"Commandment Three says Do Not Kill, Amendment Two says Blood Will Spill"
-- Dan Bern, "New American Language"
--
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