From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 6a0c8b64 for ; Thu, 8 Aug 2019 21:31:53 +0000 (UTC) Received: (qmail 29514 invoked by alias); 8 Aug 2019 21:31:44 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24139 Received: (qmail 29912 invoked by uid 1010); 8 Aug 2019 21:31:44 -0000 X-Qmail-Scanner-Diagnostics: from mail-lj1-f170.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25531. spamassassin: 3.4.2. Clear:RC:0(209.85.208.170):SA:0(-1.9/5.0):. Processed in 2.089611 secs); 08 Aug 2019 21:31:44 -0000 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.208.170 as permitted sender) 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bASp0EnabRclcWmOWe41s2GIPhAX6Sw+QIzlUX8WKO8=; b=MvFSGwSsKHIRIIFXfyRYxyJyDsijV+PndUG/GXXZWWDU+aJAoSpQ89zx/N21x9sy8C agXsSlUZ9+e2fMvU846m8664V1iYc4TvDu5OqkqsECD3qNEg6tFgiz1JM6Cli+30spqq 8eyzoCGrCYeTmYk6Kg2YZQXiCVBH1DiWOq9iVXJTvntnwgSa3n58o8bc3P6kpPNCgIKA 5bwCcmng7lW78NazVnBNVGFGxqHGUfw0/iveI3Annh6bD+l/uQvNLzYO68dwS9JMncaf MyvD39XTYQ2ZA7M7X3QKZ4mVMciAj4xQNhUMbe8XUg4m0nvBg6AG+gM6SxXpPKBczZz6 MXsA== X-Gm-Message-State: APjAAAXrq01p05jzFN48R5qvvuv5/LGI83upe1CPLbjxjxXBLOKiCkxH Fsm+7RBU5yFBQyU7mxF+wfKuBcf+rPINux9zLko9yA== X-Google-Smtp-Source: APXvYqxL5EDnAtNrQPkRLjJZwMphBD0p3nw+A7T/b1FepN3aKTEICY2kcUjrAMJrgN+MJWR3FPCWAz6ngPCpZawtvGE= X-Received: by 2002:a2e:b0e6:: with SMTP id h6mr8865284ljl.18.1565299866111; Thu, 08 Aug 2019 14:31:06 -0700 (PDT) MIME-Version: 1.0 References: <1565264849.4375.2.camel@samsung.com> In-Reply-To: From: Bart Schaefer Date: Thu, 8 Aug 2019 14:30:53 -0700 Message-ID: Subject: Re: suffix alias where the app has a space in it To: TJ Luoma Cc: Zsh MailingList Content-Type: text/plain; charset="UTF-8" On Thu, Aug 8, 2019 at 1:18 PM TJ Luoma 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.