Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: suffix alias where the app has a space in it
- X-seq: zsh-users 24139
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: TJ Luoma <luomat@xxxxxxxxx>
- Subject: Re: suffix alias where the app has a space in it
- Date: Thu, 8 Aug 2019 14:30:53 -0700
- Cc: Zsh MailingList <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bASp0EnabRclcWmOWe41s2GIPhAX6Sw+QIzlUX8WKO8=; b=MaYOsPe/OHxqATPoQaeZ5vr53AFd1HAPibBZW1DP8cfx2JgY/QIZEO+Q3M8YZrrJKJ dabWb6iPlqqa+aTIynvlo/Lv9YBfHBLb9dLPytPPcd7dLCiT+dCG3tkExJ7bY570Fftm Z3TGcb0nr8SyjcN/Xr/jqavSs8vzCEwChr4d09Sz9FAS4i5qUgomPkf+wURnu/aXso6q 42CPCmS2joMJAKsAC3kNfutc/Ebx9jpN+fOyTlry4+QVJ/91wpxyViQ5xRY58Qxrak9R WL9yyBGs2KIGy4j03SYN760XmjylB0+zXAcQIU6d0PbT2DMOTI63Aj1DL4vp+AhPqSLr Kcvw==
- In-reply-to: <CADjGqHvJNjer085qWM_P_bBNU0QYxPsE33gQVKxQVoTLBJ3EZg@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CGME20190808111626epcas1p28034457322a4f06a363aed6763a5b859@epcas1p2.samsung.com> <CADjGqHv7H6xsYHYwNwD49LEQsHWw4DdzBtpFK=C=umLGDNdZEQ@mail.gmail.com> <1565264849.4375.2.camel@samsung.com> <CADjGqHvnSrcNbu=SXV_42XDTh0VZe6g3a0er5Bn8-CQ+87Ap4A@mail.gmail.com> <CADjGqHvJNjer085qWM_P_bBNU0QYxPsE33gQVKxQVoTLBJ3EZg@mail.gmail.com>
On Thu, Aug 8, 2019 at 1:18 PM TJ Luoma <luomat@xxxxxxxxx> wrote:
>
> Related Question: is there a way to set a default command to use for
> all suffixes, and then make additional aliases for other suffixes?
Not with alias. You could try a command-not-found handler.
> Something like this:
>
> alias -s '*'='open'
What that means is that if you type
% foo.*
then "open foo.*" will be executed. It does NOT mean that the alias
will be invoked when you type
% foo.bar
Aliases do not do pattern matching.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author