summaryrefslogtreecommitdiff
path: root/etc/functions
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-03-21 23:33:09 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-03-21 23:33:09 +0100
commit3aa9e5592a0f44c05f60313fdca62328900f7ea5 (patch)
tree599bc46f73068ab1862114f871f413ad150c1986 /etc/functions
parent7c0c6369b9c047db553ce81be0cd5530bbaee046 (diff)
help: Only use apt-file if the file does not originate from $HOME
Diffstat (limited to 'etc/functions')
-rwxr-xr-xetc/functions/help2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/functions/help b/etc/functions/help
index b29130e..bb061ae 100755
--- a/etc/functions/help
+++ b/etc/functions/help
@@ -7,7 +7,7 @@ elif [[ -n $(whichf $1) ]]; then
finfo $1
elif (( ${+builtins[$1]} )); then
man zshbuiltins | less -p " $1"
-elif check_com -c $1 && check_com -c apt-file; then
+elif [[ $commands[$1] != ${HOME}* ]] && check_com -c $1 && check_com -c apt-file; then
apt-cache show ${(s/:/)$(apt-file search -F $commands[$1])[1]}
else
echo "Sorry, no clue." >&2