summaryrefslogtreecommitdiff
path: root/plugins/command-not-found
diff options
context:
space:
mode:
authortoctan <tianjin.sc@gmail.com>2013-04-14 13:07:17 +0800
committertoctan <tianjin.sc@gmail.com>2013-04-14 13:07:17 +0800
commit388ae92d4755dae0f2d205dbb40fb0bbd975c9b3 (patch)
tree5c4c90dce462d54fe3f085e47dd563cf60f3264a /plugins/command-not-found
parent85426a57a2561f675a6ad51754d6687c3ec571c2 (diff)
downloadzsh-388ae92d4755dae0f2d205dbb40fb0bbd975c9b3.tar.gz
zsh-388ae92d4755dae0f2d205dbb40fb0bbd975c9b3.tar.bz2
zsh-388ae92d4755dae0f2d205dbb40fb0bbd975c9b3.zip
command-not-found support for Arch Linux
Diffstat (limited to 'plugins/command-not-found')
-rw-r--r--plugins/command-not-found/command-not-found.plugin.zsh4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/command-not-found/command-not-found.plugin.zsh b/plugins/command-not-found/command-not-found.plugin.zsh
index 567da1b45..f3d7ec2df 100644
--- a/plugins/command-not-found/command-not-found.plugin.zsh
+++ b/plugins/command-not-found/command-not-found.plugin.zsh
@@ -3,3 +3,7 @@
# this is installed in Ubuntu
[[ -e /etc/zsh_command_not_found ]] && source /etc/zsh_command_not_found
+
+# Arch Linux command-not-found support, you must have package pkgfile installed
+# https://wiki.archlinux.org/index.php/Pkgfile#.22Command_not_found.22_hook
+[[ -e /usr/share/doc/pkgfile/command-not-found.zsh ]] && source /usr/share/doc/pkgfile/command-not-found.zsh