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.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,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 077e63b6 for ; Wed, 2 Jan 2019 14:41:58 +0000 (UTC) Received: (qmail 24574 invoked by alias); 2 Jan 2019 14:41:44 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 43965 Received: (qmail 15435 invoked by uid 1010); 2 Jan 2019 14:41:44 -0000 X-Qmail-Scanner-Diagnostics: from mail-wr1-f54.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.100.2/25112. spamassassin: 3.4.2. Clear:RC:0(209.85.221.54):SA:0(-1.8/5.0):. Processed in 0.76403 secs); 02 Jan 2019 14:41:44 -0000 X-Envelope-From: saverio.pub2@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=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=cL8gQ+6fBK8daEtI2iqrnE/slHDqg0IzUbgNCkpKygY=; b=SM3tKbgO5JPey5/9/ukLkkz/ZBuPWbrXI/ZNpf5m/VOf3q3hTAc87LGY5FqHbP/6bI iahsOt5pF4mbazGa9ggoeobL4zY2Y77XYy7qMP0cyVnU3xqwjm1v6MKWfnapo6wu79Ye HFM/DLoIvHqmRiqn5/DIRZH4oj57C+8Z0wxLeBJ9cRqajuK21XspWSDEIERUOqyZOC6J 65mZ7tszvyQBmx1lBz9dscn/f/QKSZ3uPX5Ng+tIKvJU5IPTNT9mqBu9Szp7T/m3XtZy Abn4yeoR642e577IvgtHa39thpMtUj98oKDBFSD6cxf9J0gfQ2cOJOpvY0bThhhNfaka r3hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=cL8gQ+6fBK8daEtI2iqrnE/slHDqg0IzUbgNCkpKygY=; b=jEqB75vcp3uOx3Fa/kYnRiOF/mKonmmXUIWHaX35Pc/sLi5Df4XlQO7WjySmZPy3F7 6/TmvUAvihmB3+Sf867F9Nve/KKC31ifdzKgCw7mBmNQFTmAMCbvh9/C2PIEyCWAcjh2 g5Fiqnoc6PdYBkibiGlm00/B1lFWePx5aY7Pp7xbpP+CWziHRHj3nFQCNByywSMfH6G7 gcNi8foDW5lgls6X0ZQPyAX0z+N+YQx7aOwoA9lUUHr9CBVa8Srbl4aD7aPf9dxpi62i WdNHv9YIcUA+FMHdjnIFcdjYKrMGA7lbGasaPcJQgVQnBino89jvD/U2uc6UY6vYxHw2 MVVA== X-Gm-Message-State: AJcUukd7RFuYpCFUHf1+vgEsTy0iaAe3lPu21+2ywf83hnaXSwmlMnlO b6qfMH2z/uhwOLsXQcBJ9HEkggp9 X-Google-Smtp-Source: ALg8bN5rk4/gxqvee71eJFrR35B/dZ/DXMBcMVqxw3a3QrQSUj6RzkLrVlT/pcDmvXQKYsTxEfo5sw== X-Received: by 2002:adf:bc87:: with SMTP id g7mr37173301wrh.250.1546440099689; Wed, 02 Jan 2019 06:41:39 -0800 (PST) To: zsh-workers@zsh.org From: "Saverio M." Subject: Zsh includes directories in tab completion Message-ID: <0fa50a79-556d-d7ab-8628-ab724bd46a07@gmail.com> Date: Wed, 2 Jan 2019 15:41:38 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Hello, On my system, zsh tab-completion includes directories present in the path, in addition to files, which is confusing and error prone. Is this intended? I think it isn't, but I didn't find a way to disable it (there's a lot of documentation around, but the posts I've found talk about tab completion customization). To be specific, I had Oh My Zsh installed, but I've removed it, and I've also removed .zshrc to be sure I'm running a vanilla setup. This is the test case: ```sh $ echo $ZSH_VERSION 5.4.2 $ echo $ZDOTDIR $ cat $HOME/.zshenv cat: /home/myuser/.zshenv: No such file or directory $ cat $HOME/.zprofile cat: /home/myuser/.zprofile: No such file or directory $ cat $HOME/.zshrc cat: /home/myuser/.zshrc: No such file or directory $ cat $HOME/.zlogin [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* $ cat $HOME/.zlogout cat: /home/myuser/.zlogout: No such file or directory $ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/myuser/bin:/home/myuser/code/scripts:/home/myuser/.rvm/bin $ ls -ld $(find ~/code/scripts -name 'myscript*') drwxr-xr-x 1 myuser myuser  752 Dec  2 18:39 /home/myuser/code/scripts/myscript -rwxrwxr-x 1 myuser myuser 4571 Dec  2 18:40 /home/myuser/code/scripts/myscript.rb $ myscript myscript     myscript.rb ``` Can anybody shed some light? Thanks! Saverio