388ae92d4755dae0f2d205dbb40fb0bbd975c9b3

Author
toctan <tianjin.sc@gmail.com>
Committer
toctan <tianjin.sc@gmail.com>
Date

Message

command-not-found support for Arch Linux

Diff

 1diff --git a/plugins/command-not-found/command-not-found.plugin.zsh b/plugins/command-not-found/command-not-found.plugin.zsh
 2index 567da1b450014b4db7b5445bf564973b76c1afea..f3d7ec2df4128cdafc58bf134e30891f46002dc4 100644
 3--- a/plugins/command-not-found/command-not-found.plugin.zsh
 4+++ b/plugins/command-not-found/command-not-found.plugin.zsh
 5@@ -3,3 +3,7 @@
 6 # this is installed in Ubuntu
 7 
 8 [[ -e /etc/zsh_command_not_found ]] && source /etc/zsh_command_not_found
 9+
10+# Arch Linux command-not-found support, you must have package pkgfile installed
11+# https://wiki.archlinux.org/index.php/Pkgfile#.22Command_not_found.22_hook
12+[[ -e /usr/share/doc/pkgfile/command-not-found.zsh ]] && source /usr/share/doc/pkgfile/command-not-found.zsh