1ae16a20d8681bf96e3bd72b81f7c0b3357c3a88
- Author
- Robby Russell <robby@planetargon.com>
- Committer
- Robby Russell <robby@planetargon.com>
- Date
Message
Merge pull request #1718 from toctan/master
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