Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Remove = in alias completion
- X-seq: zsh-workers 25598
- From: Jörg Sommer <joerg@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Remove = in alias completion
- Date: Tue, 2 Sep 2008 23:16:12 +0000 (UTC)
- Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=gnuu.de; s=banki; t=1220397607; i=@xxxxxxxxxxxx; bh=5kGAeRqxKi8cgDp8QyFEgATigAhfHUy3v ML744dI8K0=; h=To:From:Subject:Date:Message-ID:Mime-Version: Content-Type:Content-Transfer-Encoding:Sender; b=c6B7Oq8uH6z4HZeZ4 jXRTgpyBbF3/7tZBAm2qFY7u5tss2eQ3fO+fQI46NF/LZbKX/NkcFdkJODkUax0hYfl bgDxKhbKHV95wYIt5Qtf+n+q3HmjXcB/YsUdWYck++NgGEBwK8aaXasn7IITR5VTagc A6T5BIuyCum4UGyG9KKU=
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Sender: news <news@xxxxxxxxxxxx>
Hi,
I find it anoying to enter ‘alias gd<TAB>’, get ‘alias gdb=’ and if I hit
return to see the definition of the alias, it gets cleared. So I propose
this patch.
diff --git a/Completion/Zsh/Command/_alias b/Completion/Zsh/Command/_alias
index c7b67c4..617627c 100644
--- a/Completion/Zsh/Command/_alias
+++ b/Completion/Zsh/Command/_alias
@@ -19,6 +19,6 @@ if [[ -n "$state" ]]; then
compset -S '=*' || suf='='
type=( ${opt_args[(i)[-+][grs]]#?} )
(( $#type )) && type=( -s $type )
_wanted -x alias expl 'alias definition' _aliases -S -qS "$suf" "$type[@]"
fi
fi
Bye, Jörg.
--
IRC: Der [Prof. Andreas Pfitzmann, TU Dresden] hat gerade vorgeschlagen, sie
sollen doch statt Trojanern die elektromagnetische Abstrahlung nutzen. Das
sei nicht massenfähig, ginge ohne Eingriff ins System, sei zielgerichtet,
und, der Hammer, das funktioniere ja bei Wahlcomputern schon sehr gut.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author