From 8bf38a086dda705f90f1d4d858db05e258b3624c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20P=C5=82azie=C5=84ski?= Date: Tue, 5 Apr 2016 20:01:29 +0200 Subject: [PATCH] set option to autocomplete aliases --- .zshrc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.zshrc b/.zshrc index 138d410..9a32796 100644 --- a/.zshrc +++ b/.zshrc @@ -102,11 +102,11 @@ zstyle ':completion:*:scp:*' hosts $(list-ssh-hosts) zstyle ':completion:*:ssh:*' users # disables users completion zstyle ':completion:*:scp:*' users # disables users completion -zstyle :compinstall filename "$HOME/.zshrc" - # Always do mid-word tab completion setopt complete_in_word +# don't expand aliases _before_ completion has finished +setopt complete_aliases #---------------------------------- Corrections ------------------------------- @@ -504,8 +504,6 @@ sshc() { ssh -q -o "ControlPath=/tmp/.cm-%r@%h:%p" -O stop $1 } -compdef '_dispatch ssh ssh' sshc - #---------------------------------- Miscellaneous ---------------------------- setopt extended_glob