From: Mark Wooding Date: Fri, 22 Sep 2017 10:30:03 +0000 (+0100) Subject: dot/zshrc: Sink completion setup. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/818cdbb47447afd13861314f83a454f650892256?ds=inline dot/zshrc: Sink completion setup. Not quite sure why I did this, but I found it amid other wreckage on crybaby. --- diff --git a/dot/zshrc b/dot/zshrc index 9fcf111..8ee287a 100644 --- a/dot/zshrc +++ b/dot/zshrc @@ -87,10 +87,6 @@ bindkey "\e " just-one-space ###-------------------------------------------------------------------------- ### Completion. -## Initialize the fancy completion machinery. -autoload -Uz compinit -compinit - ## Contexts: :completion:FUNCTION:COMPLETER:COMMAND:ARGUMENT:TAG zstyle ':completion:*' completer _expand _complete _ignored _approximate zstyle ':completion:*' insert-unambiguous false @@ -102,6 +98,10 @@ zstyle ':completion:*' original true zstyle ':completion:*' verbose false zstyle ':completion:*:*:git*:*' verbose true +## Initialize the fancy completion machinery. +autoload -Uz compinit +compinit + _r () { words[1]=sudo; _normal; } compdef _r rootly compdef _ssh @