Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Can I put a newline in an alias?



On Jul 20, 11:41am, Russell Hoover wrote:
} Subject: Re: Can I put a newline in an alias?
}
} [...] all I wanted was to be able to do something like
} hit 'c <return>' to clear the screen and have a filenames-only listing of
} the current dir at the top of the screen.

    function c() {
	echotc cl
	print -rc *(.)
    } 

} I was wondering more about what chars you'd use within an alias to represent 
} 'control-'

There isn't any special syntax for that.  You just have to put the control
characters in as themselves.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com



Messages sorted by: Reverse Date, Date, Thread, Author