zsh-users
 help / color / mirror / code / Atom feed
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: Fourhundred Thecat <400thecat@gmx.ch>
Cc: zsh-users@zsh.org
Subject: Re: zsh completion for umount
Date: Sun, 30 Oct 2016 15:35:37 +0000	[thread overview]
Message-ID: <20161030153537.GB12137@fujitsu.shahaf.local2> (raw)
In-Reply-To: <5815DDAB.8070307__40712.3355348178$1477828401$gmane$org@gmx.ch>

Fourhundred Thecat wrote on Sun, Oct 30, 2016 at 12:46:51 +0100:
> Hello,
> 
> I have /mnt/mmc/ mounted. When I cd to /mnt/ and want to use
> autocompletion to umount mmc:
> 
>  cd /mnt/
>  umount m<tab>
> 
> Nothing happens. Completion does not complete anything.


Try «umount ./m<TAB>».

Making it work for «umount m<TAB>» too shouldn't be too hard.

> Similarly, for mount, the completion does not complete for -o
> 
>   mount -o <tab>
>   mount -o l<tab>
> 
> Nothing.
> 

Are you sure you have completion enabled (run «autoload compinit;
compinit»)?  What's the output of «echo $OSTYPE» on your system?  I get
45 matches when I do «mount -o <TAB>» on linux.

> The completion file Unix/_mount has 1000 lines, yet the very basic
> completion does not work.
> 
> I have switched to zsh from bash recently. While I like the fancy
> features that zsh has, I am increasingly frustrated that basic
> functionality does not work.
> 
> Why does bash get completions right, and zsh doesn't ?
> Don't these problems bother nobody else ?

The problems may well be specific to your setup, especially considering
you've only recently started using zsh.  If some functionality bothers
you, describe the problem and we can see about solving it.

Cheers,

Daniel


       reply	other threads:[~2016-10-30 15:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <5815DDAB.8070307__40712.3355348178$1477828401$gmane$org@gmx.ch>
2016-10-30 15:35 ` Daniel Shahaf [this message]
2016-10-30 19:38   ` Fourhundred Thecat
2016-10-31  7:47     ` Bart Schaefer
     [not found]     ` <161031004732.ZM18486__31116.0025107258$1477900147$gmane$org@torch.brasslantern.com>
2016-10-31 15:23       ` Daniel Shahaf
2016-10-30 11:46 Fourhundred Thecat

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161030153537.GB12137@fujitsu.shahaf.local2 \
    --to=d.s@daniel.shahaf.name \
    --cc=400thecat@gmx.ch \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).