From 07fbd76f7940b61d2327e1d27cde69e848ba69b0 Mon Sep 17 00:00:00 2001 From: Axel Beckert Date: Tue, 31 Dec 2013 02:07:07 +0100 Subject: [PATCH] Add function afsp by gregoa --- zsh.d/50-alias | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zsh.d/50-alias b/zsh.d/50-alias index f4d7581..785369d 100644 --- a/zsh.d/50-alias +++ b/zsh.d/50-alias @@ -127,6 +127,11 @@ alias agwn='aptitude why-not' alias ccal='ccal -e' alias eccn='emacsclient -c -n' +# apt-file search for Perl Modules, by gregoa +function afsp() { + apt-file search $(echo "/$@" | sed -e 's|::|/|g ; s|-|/|g ; s|$|.pm|') | uniq +} + # Five character aliases alias agrep=ack-grep alias cgrep='ack-grep --passthru' -- 2.1.4