zsh-users
 help / color / mirror / code / Atom feed
From: Russell Hoover <rusty@panix.com>
To: Zsh-users <zsh-users@math.gatech.edu>
Subject: Re: Can I put a newline in an alias?
Date: Sun, 20 Jul 1997 11:41:42 -0400	[thread overview]
Message-ID: <19970720114142.29384@panix.com> (raw)
In-Reply-To: <970719210256.ZM1345@candle.brasslantern.com>; from Bart Schaefer on Sat 07/19/97 at 09:02 PM -0700

On Sat 07/19/97 at 09:02 PM -0700, Bart Schaefer <schaefer@brasslantern.com> wrote:

> zsh% alias this_has_a_newline='echo this
> quote> echo has a newline'
> zsh% this_has_a_newline
> this
> has a newline

Thanks. This works fine -- 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.

> Same thing should work for any control sequence; just put it in quotes.

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

> Notice that in the sample above the newline was taken as a command
> separator.  That's probably not what you mean, but since you didn't
> say why you want to include a newline or control ...

Well, it serves the purpose. If there's a better way, I'd be glad to hear
that, too. 


-- 
                              // rusty@panix.com //

                Intelligent people laugh quickly and smile slowly.
                      -- Malcolm de Chazal   Sens-Plastique


  reply	other threads:[~1997-07-20 16:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-07-20  1:51 Russell Hoover
1997-07-20  4:02 ` Bart Schaefer
1997-07-20 15:41   ` Russell Hoover [this message]
1997-07-20 17:07     ` Bart Schaefer
1997-07-22 20:42       ` Russell Hoover
1997-07-22 22:39         ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19970720114142.29384@panix.com \
    --to=rusty@panix.com \
    --cc=zsh-users@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).