From baa94ecc1715f8f81ed25a37401c1e26eb683f60 Mon Sep 17 00:00:00 2001 From: Jasonm23 Date: Sat, 28 Jan 2017 18:58:31 +0800 Subject: [PATCH] Add old-omz-completion plugin --- plugins/old-omz-completion/README.md | 9 +++++++++ plugins/old-omz-completion/old-omz-completion.plugin.zsh | 1 + 2 files changed, 10 insertions(+) create mode 100644 plugins/old-omz-completion/README.md create mode 100644 plugins/old-omz-completion/old-omz-completion.plugin.zsh diff --git a/plugins/old-omz-completion/README.md b/plugins/old-omz-completion/README.md new file mode 100644 index 00000000..32794dc9 --- /dev/null +++ b/plugins/old-omz-completion/README.md @@ -0,0 +1,9 @@ +## Description + +This plugin restores the original oh-my-zsh completion. Hyphen, underscore and dot are treated as wildcards. + +For example `cd /etc/i.d TAB` would expand to `/etc/init.d`. The new completion (introduced last year) breaks this completion stlye. + +For more info see: + +https://github.com/robbyrussell/oh-my-zsh/issues/5560 diff --git a/plugins/old-omz-completion/old-omz-completion.plugin.zsh b/plugins/old-omz-completion/old-omz-completion.plugin.zsh new file mode 100644 index 00000000..18de9d70 --- /dev/null +++ b/plugins/old-omz-completion/old-omz-completion.plugin.zsh @@ -0,0 +1 @@ +zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'