From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14533 invoked by alias); 2 Mar 2018 09:32:45 -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: 23192 Received: (qmail 16338 invoked by uid 1010); 2 Mar 2018 09:32:45 -0000 X-Qmail-Scanner-Diagnostics: from mail-ua0-f180.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.217.180):SA:0(-1.9/5.0):. Processed in 3.620589 secs); 02 Mar 2018 09:32:45 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: pierpaolog@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=4jMRXIgUOPVxpDsHRofgQjHqMfYFJ1LhQJ7Ps6NrgbQ=; b=rllK9vYDGOxnJCiV9qxL06dCjRyU1D1hsJnxeB1JbvFQd91xn/9AbljJDT02yDcXm+ JPV80Crvv+pLCfQV1lq39pbal9VKx6tMU4uHamXSN6S6dDZnz5OZlDUb5mKCM4wYlxX0 Q/cmcSyyoh0T8YJtDQY1k2z43y/JdJ7pvTnel6otA0118xIqjEVezJNJ2JKFZ8Tq12lt KJBqcR+GfrRZOAUHynFKdzKM4aXgKgwV0WufXtQH2pA1Xj68t7Yucq10X7sXFuO1i3ds Em8aPZD90IhzFQpiDjzINIejQlDtz6ey8QBN+wH+DJtJMbcsM6K8eepQHXBHWsQcwkBL w6TQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=4jMRXIgUOPVxpDsHRofgQjHqMfYFJ1LhQJ7Ps6NrgbQ=; b=fagrQIVoTEVONXvpLufJVgyNXvGiDWgirDmN4RHCME8Z2cjglJkXtg3KxfUHeTjuXZ IxnhmZBqVRDsJPA1HouPuN2VCi2eYnZZjvoH+O70IlCSsv15nRlIjbPNLAtT4EhSxKC9 FHI33Jy510+JGH9sWsOHIBkTmTAvhMyO4U8rkA5EngE5N2cYAMWr+viQy9N/SQMh9HEu W6l8wXR0g55K4u1hohaUMekCToohcTJbSMPKRLsWDgFDrw+ICLghpOLLPxvfR+M4zgMP swHecm23W8Fk97CDfrJjI+trwlUlm0yz5xit47kWRTwujSPJZt7gN2SmFBl8KkTA+V0W e9YA== X-Gm-Message-State: APf1xPDTJ1oE2POtAcBWdXQmZE/mjUqXmpqMUGaUuruSx33/pJtSXt3J nDY7AQZ5ceRVSEI2In2uW+e33nBRXycfd4ahwNe1paA5 X-Google-Smtp-Source: AG47ELtigsNaTt/93H3xN99yeWrD9q7lsK6jDvoHs3fug8QNuyQAIFkb37TDJM5POT72A9q2Gepwa2xhI5eTqJRruMs= X-Received: by 10.159.45.147 with SMTP id v19mr3298184uaj.201.1519983157655; Fri, 02 Mar 2018 01:32:37 -0800 (PST) MIME-Version: 1.0 From: Pier Paolo Grassi Date: Fri, 2 Mar 2018 10:31:57 +0100 Message-ID: Subject: alias of completion To: zsh-users@zsh.org Content-Type: multipart/alternative; boundary="089e082547342d406505666aa8a3" --089e082547342d406505666aa8a3 Content-Type: text/plain; charset="UTF-8" Hello guys, I just joined the list but I have been a zsh enthusiast for 15 years and since I discovered it it's always been the best work enviroment I ever had. One thing I was never been able to accomplish though, is: what if I want a custom function, say: mydockerwrapper(){} behave, for completion's sake, like, let's say: docker ls so that if I try to complete after mydockerwrapper I get the same suggestion that I would get after docker ls, and if I have mydockerwrapper xx I get the same completion that I would get after docker ls xx, and so on. -what I tried- I know that the completion function for the docker command is _docker, and that I could associate my function to this completion function with compdef _docker mydockerwrapper but it doesn't seem possibile to pass one default argument to the completion function in this way. So I tried defining my own completion function, and add one argument and pass it to the _docker function, but I got stuck on this one. I'm sure this must be very easy to do in zsh, I just can't figure out how.. maybe someone can help me out? thanks, happy coding everyone! -- Pier Paolo Grassi email: pierpaolog@gmail.com linkedin: https://www.linkedin.com/in/pier-paolo-grassi-19300217 fondatore: https://www.meetup.com/it-IT/Machine-Learning-TO --089e082547342d406505666aa8a3--