Skip to main content
Missing wildcard caused it to fail. Now works.
Source Link
Sparhawk
  • 20.6k
  • 20
  • 97
  • 160

You can use the ignored-patterns style to exclude some completions.

zstyle ':completion:*:umount:*' ignored-patterns "^/run/media/$USER/"*" 

Under the default settings, you can still get completion for ignored patterns if there is no non-ignored candidate.

(This answer is for plain zsh using the compinit completion system. It's possible, but unlikely, that zim somehow causes it not to work.)

You can use the ignored-patterns style to exclude some completions.

zstyle ':completion:*:umount:*' ignored-patterns "^/run/media/$USER/" 

Under the default settings, you can still get completion for ignored patterns if there is no non-ignored candidate.

(This answer is for plain zsh using the compinit completion system. It's possible, but unlikely, that zim somehow causes it not to work.)

You can use the ignored-patterns style to exclude some completions.

zstyle ':completion:*:umount:*' ignored-patterns "^/run/media/$USER/*" 

Under the default settings, you can still get completion for ignored patterns if there is no non-ignored candidate.

(This answer is for plain zsh using the compinit completion system. It's possible, but unlikely, that zim somehow causes it not to work.)

Source Link
Gilles 'SO- stop being evil'
  • 865.9k
  • 205
  • 1.8k
  • 2.3k

You can use the ignored-patterns style to exclude some completions.

zstyle ':completion:*:umount:*' ignored-patterns "^/run/media/$USER/" 

Under the default settings, you can still get completion for ignored patterns if there is no non-ignored candidate.

(This answer is for plain zsh using the compinit completion system. It's possible, but unlikely, that zim somehow causes it not to work.)