From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 2543 invoked from network); 28 May 2020 20:54:39 -0000 Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with ESMTPUTF8; 28 May 2020 20:54:39 -0000 Received: (qmail 26941 invoked by alias); 28 May 2020 20:54:27 -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: 24885 Received: (qmail 16883 invoked by uid 1010); 28 May 2020 20:54:27 -0000 X-Qmail-Scanner-Diagnostics: from mail-io1-f48.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.3/25821. spamassassin: 3.4.4. Clear:RC:0(209.85.166.48):SA:0(-2.0/5.0):. Processed in 1.959833 secs); 28 May 2020 20:54:27 -0000 X-Envelope-From: mikachu@gmail.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.166.48 as permitted sender) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=292v2MBnLRZJBbFYHVYP6HunG/NcByYyTJ8bVEXCMEM=; b=HVPRtdsm1D2/+mpBkZdLh6r4fOqwD4N/qx82zqod6worY6BTTcUpujrbz432TGnLGE Ia2WOJ/3lU6+GVFs72yH2eCtU1kKm0goMNhEDyWVZxWVXw4J34m+ChhQG02sSBw7qbJH 6BLRI4WWWRfOyTlHGRkSf2amsGtemw1jhI8ppD2ccoKLy7ujVIAg/R1mRSM3D6caeuWH uICYEMuHTfi6ubvCcBUQoxnPyqUVgzEOJ6nZMhYJu1sU8d/KVXbZ402WmYKhA/99f7yr pdOED/x4HtKQl1Ql6lk2bAnpB0V2+imtTFdeBHODF54VhpSk/bQ0Ir3lcj15mmN1QDhA /+mQ== X-Gm-Message-State: AOAM530im0eQ0Z8po0BehW37kxav8mJqCaaYj0vDXfr37QbZlTy6UYwc nqNysKWlvgFZyfAPkBoZ0g2Da4iLdibaW0yD96debA== X-Google-Smtp-Source: ABdhPJwK57vtpjQ89LeQb6m207GGmJkxnTMYSL2Kvqsv+P7uGq9qA+undkTKpwaaAIU9NZROHDtPTEAdASYholMDNf4= X-Received: by 2002:a05:6602:2e0e:: with SMTP id o14mr3919394iow.164.1590699232132; Thu, 28 May 2020 13:53:52 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: Mikael Magnusson Date: Thu, 28 May 2020 22:53:51 +0200 Message-ID: Subject: Re: Don't append slash when auto completing a symbolic link pointing to a directory To: Alan <8fvebtoeq87@gmail.com> Cc: zsh-users@zsh.org Content-Type: text/plain; charset="UTF-8" On 5/28/20, Alan <8fvebtoeq87@gmail.com> wrote: > Hi, > > I'm switching from bash to zsh and prefer bash's default behavior of not > appending a slash when auto completing a symbolic link pointing to a > directory. > > For example: > $ mkdir directory > $ ln -s directory symblink > $ ls sym > > At this point, in bash, you would get: > $ ls symblink > > In zsh, I'm getting: > $ ls symblink/ > > Also, in bash, hitting a when the full symbolic link is already > present would then append the slash to the symbolic link: > $ ls symblink > $ ls symblink/ > > Is there anyway to get this behavior with zsh? I looked through "man > zshoptions" this time and couldn't find anything specific to this. If it makes you feel better, hitting enter will remove the / and just run "ls symblink". (Although this makes no difference to ls unless you also give -l). The / is just inserted temporarily in case you want to continue typing/completing things inside the directory, but a space, enter or movement etc will remove it again. This should be indicated by a bold/standout font. -- Mikael Magnusson