This repository has been archived on 2022-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
prezto/modules/command-not-found/init.zsh

18 lines
504 B
Bash
Raw Permalink Normal View History

2012-01-31 23:37:51 -05:00
#
# Displays installation information for not found commands.
#
# Authors:
# Joseph Jon Booker <joe@neoturbine.net>
#
2011-08-30 23:16:15 -04:00
# Load command-not-found on Debian-based distributions.
if [[ -s '/etc/zsh_command_not_found' ]]; then
source '/etc/zsh_command_not_found'
# Load command-not-found on Arch Linux-based distributions.
elif [[ -s '/usr/share/doc/pkgfile/command-not-found.zsh' ]]; then
source '/usr/share/doc/pkgfile/command-not-found.zsh'
2012-07-23 15:00:44 -04:00
# Return if requirements are not found.
else
2012-07-23 15:00:44 -04:00
return 1
2011-08-30 23:16:15 -04:00
fi