Pkgfile support in the command-not-found module
This commit is contained in:
parent
0f7e454977
commit
5ac8d4f8e9
2 changed files with 14 additions and 8 deletions
|
@ -1,15 +1,17 @@
|
||||||
Command-Not-Found
|
Command-Not-Found
|
||||||
=================
|
=================
|
||||||
|
|
||||||
Loads the [command-not-found][1] tool on Debian-based distributions.
|
Loads the [command-not-found][1] tool on Debian-based distributions and [pkgfile][2]'s bundled tool on ones that use Pacman.
|
||||||
|
|
||||||
Authors
|
Authors
|
||||||
-------
|
-------
|
||||||
|
|
||||||
*The authors of this module should be contacted via the [issue tracker][2].*
|
*The authors of this module should be contacted via the [issue tracker][4].*
|
||||||
|
|
||||||
- [Joseph Booker](https://github.com/sargas)
|
- [Joseph Booker](https://github.com/sargas)
|
||||||
|
- [ne](https://github.com/neeee)
|
||||||
|
|
||||||
[1]: https://code.launchpad.net/command-not-found
|
[1]: https://code.launchpad.net/command-not-found
|
||||||
[2]: https://github.com/sorin-ionescu/prezto/issues
|
[2]: https://github.com/falconindy/pkgfile
|
||||||
|
[3]: http://www.archlinux.org/pacman/
|
||||||
|
[4]: https://github.com/sorin-ionescu/prezto/issues
|
||||||
|
|
|
@ -3,12 +3,16 @@
|
||||||
#
|
#
|
||||||
# Authors:
|
# Authors:
|
||||||
# Joseph Jon Booker <joe@neoturbine.net>
|
# Joseph Jon Booker <joe@neoturbine.net>
|
||||||
|
# neeee <ne.tetewi@gmail.com>
|
||||||
#
|
#
|
||||||
|
|
||||||
# Return if requirements are not found.
|
if [[ -r '/etc/zsh_command_not_found' ]]; then
|
||||||
if [[ ! -s '/etc/zsh_command_not_found' ]]; then
|
source '/etc/zsh_command_not_found'
|
||||||
return 1
|
elif [[ -r '/usr/share/doc/pkgfile/command-not-found.zsh' ]]
|
||||||
|
source '/usr/share/doc/pkgfile/command-not-found.zsh'
|
||||||
|
else
|
||||||
|
# Return if requirements are not found.
|
||||||
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
source '/etc/zsh_command_not_found'
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue