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 8979 invoked from network); 28 May 2020 21:57:29 -0000 Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with ESMTPUTF8; 28 May 2020 21:57:29 -0000 Received: (qmail 7514 invoked by alias); 28 May 2020 21:57:19 -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: 24886 Received: (qmail 28106 invoked by uid 1010); 28 May 2020 21:57:19 -0000 X-Qmail-Scanner-Diagnostics: from mail-lj1-f173.google.com by f.primenet.com.au (envelope-from <8fvebtoeq87@gmail.com>, uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.3/25821. spamassassin: 3.4.4. Clear:RC:0(209.85.208.173):SA:0(-1.7/5.0):. Processed in 1.269725 secs); 28 May 2020 21:57:19 -0000 X-Envelope-From: 8fvebtoeq87@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.208.173 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:references:in-reply-to:from:date :message-id:subject:to:cc; bh=iIivuWMkCxwd+42kEUb0Z8hSLHr2+iAB4UFXTHBTR7A=; b=naH1k54AdrZgPt56m+hkINy0GGvR1cmOy7lB89UP5RbuwDvBw7yh3iwNkGGjHSGqmf IsCKLSw+Umf1NJ+Cw+ONg26gBbb3K1oLeU8GuCVF6ZAgZnArxpErfHdLwnYr8VLp8idS d56UfA2z8n/iAELXhLT0it2d2SnUstSwGr7FQdobsue9wMAfA1xXBwJ5WDskhPf+4LTV p96scHECDE/rO4jaSR/5x+gGAdLH2w/+q0vjWenAdRjcdoELn8oGnm/Q+aHPQ0bSeW8W bSsDCnxPTlt/EsnDs3ikn58GrK1i7VvjVkZmIBY8ZQqUwMWuGcKSRTRpVLk/cz3cQVit soEg== X-Gm-Message-State: AOAM533yGTfhlwcUESyuyQ7ea+eUXKMYEXYxKTy6MX9plTu4G6xGQ/mT njCo3rPixk1Eo0sw7GWaAVerRG7jvpM6RV6GYzo3taYV X-Google-Smtp-Source: ABdhPJx/zxwOHeoMv2UoBqUX12iBfeIKpyzdcY+mk1qYP5zNVR1uCoLBkrK/6GNghrGPi44UWFw03lBrl0UNToOeE/U= X-Received: by 2002:a2e:9087:: with SMTP id l7mr2619947ljg.430.1590703003580; Thu, 28 May 2020 14:56:43 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Alan <8fvebtoeq87@gmail.com> Date: Thu, 28 May 2020 17:56:32 -0400 Message-ID: Subject: Re: Don't append slash when auto completing a symbolic link pointing to a directory To: Mikael Magnusson Cc: zsh-users@zsh.org Content-Type: multipart/alternative; boundary="00000000000078bec805a6bc67df" --00000000000078bec805a6bc67df Content-Type: text/plain; charset="UTF-8" Unfortunately, I have autoremoveslash disabled (i.e. 'unsetopt autoremoveslash'), and prefer it that way for other things, so the trailing slash isn't removed when pressing enter. On Thu, May 28, 2020 at 4:53 PM Mikael Magnusson wrote: > 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 > --00000000000078bec805a6bc67df--