summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorWill Thompson <will@willthompson.co.uk>2015-04-18 12:57:39 +0100
committerWill Thompson <will@willthompson.co.uk>2015-04-18 12:57:41 +0100
commit30221fe015352e305e190264c80ead7d0511bd6e (patch)
treed94e9a167e3b6f7f87c02a496a6b9800c953e704 /contrib
parentafca1e8e96e3d351891c9c3ca65fab70b25ad74a (diff)
CNF: define command_not_found_handler for zsh
The world is definitely a better place for bash and zsh disagreeing in a single 'r' on the name of this hook. See also: https://bugzilla.redhat.com/show_bug.cgi?id=678934 https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/command-not-found/command-not-found.plugin.zsh
Diffstat (limited to 'contrib')
-rw-r--r--contrib/command-not-found/PackageKit.sh.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/command-not-found/PackageKit.sh.in b/contrib/command-not-found/PackageKit.sh.in
index 8201e2ad2..29bac1501 100644
--- a/contrib/command-not-found/PackageKit.sh.in
+++ b/contrib/command-not-found/PackageKit.sh.in
@@ -31,3 +31,8 @@ command_not_found_handle () {
return $retval
}
+if [ -n "$ZSH_VERSION" ]; then
+ command_not_found_handler () {
+ command_not_found_handle "$@"
+ }
+fi