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 24138
- From: TJ Luoma <luomat@xxxxxxxxx>
- To: Zsh MailingList <zsh-users@xxxxxxx>
- Subject: Re: suffix alias where the app has a space in it
- Date: Thu, 8 Aug 2019 13:40:29 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=0zzk6PQD2dIQRJad9BWPfpgGn9waKHr65rfmaf/W9T4=; b=DbYb0cUhCVYfiIUYdI+n2sOTLf4OR0tdA3R+AP7u5rv4s87vfVoHy9RS07oHB0UWS3 UaeEF38nKkV3Medv91OHuooic7AQ2aOl0LXqLSENVH095OjV2vvRev21+YQuxI9u7UbR uwq0dCHUfI1ABHhaJU9EdgZi02IhbORwVBXlCewklSWtVk9HEuhW3t7+uSk4lZZgTzo6 MdDNqNbzQO5OhNvzN6s4dfghCD4Qqdit/uvOfsCu6h0qyOpsDaarSribf7LwJ0jSX9Qz jfIM0r7lYDBcievbSnYMxQO23JYacTGJRN18NC5uGL2B/iNafl1lyLPygheF9Z6LtJhE XRVA==
- In-reply-to: <CADjGqHvnSrcNbu=SXV_42XDTh0VZe6g3a0er5Bn8-CQ+87Ap4A@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>
Related Question: is there a way to set a default command to use for
all suffixes, and then make additional aliases for other suffixes?
Something like this:
alias -s '*'='open'
or
alias -s \*='open'
and then
alias -s txt='pico'
would override the original.
I tried the first two but neither seemed to work, but there may be a
way that I'm overlooking.
Tj
Messages sorted by:
Reverse Date,
Date,
Thread,
Author