From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20460 invoked by alias); 31 May 2017 08:26:00 -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: X-Seq: 22718 Received: (qmail 12858 invoked from network); 31 May 2017 08:26:00 -0000 X-Qmail-Scanner-Diagnostics: from mx0a-001b2d01.pphosted.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(148.163.156.1):SA:0(-3.5/5.0):. Processed in 1.18186 secs); 31 May 2017 08:26:00 -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=-3.5 required=5.0 tests=RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2 autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: hanpt@linux.vnet.ibm.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at linux.vnet.ibm.com does not designate permitted sender hosts) Date: Wed, 31 May 2017 14:46:55 +0800 From: Han Pingtian To: zsh-users@zsh.org Subject: How to complete alias after alias of sudo? Mail-Followup-To: zsh-users@zsh.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.8.0 (2017-02-23) X-TM-AS-GCONF: 00 x-cbid: 17053106-0004-0000-0000-00001241F886 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00007149; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000212; SDB=6.00868076; UDB=6.00431364; IPR=6.00647955; BA=6.00005387; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00015654; XFM=3.00000015; UTC=2017-05-31 06:47:03 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17053106-0005-0000-0000-00007F86A02E Message-Id: <20170531064655.GA8512@localhost.localdomain> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-05-31_02:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1703280000 definitions=main-1705310126 Hi, I have alias sd='sd -i ' alias foo=ls And % sd foo [sudo] password for hpt: anaconda-ks.cfg initial-setup-ks.cfg install-ocfedora.sh works just fine. But looks like I cannot complete the second alias by : % sd f external command fold foomatic-kitload ... only external commands listed. Is it possible to complete alias here? Thanks in advance!