mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-12 01:52:31 +01:00
Merge 2ef6008102 into 72acd2ca90
This commit is contained in:
commit
bcf56929bc
1 changed files with 12 additions and 2 deletions
|
|
@ -1,8 +1,18 @@
|
|||
## Platforms with a built-in command-not-found handler init file
|
||||
|
||||
# Arch Linux: required 'pkgfile'
|
||||
if [[ -f /etc/arch-release ]]; then
|
||||
if command -v pkgfile >/dev/null 2>&1; then
|
||||
if [[ -f /usr/share/doc/pkgfile/command-not-found.zsh ]]; then
|
||||
source /usr/share/doc/pkgfile/command-not-found.zsh
|
||||
return 0
|
||||
fi
|
||||
else
|
||||
printf "Warning: 'pkgfile' is not installed,\nYou can install it via: sudo pacman -S pkgfile\n" >&2
|
||||
fi
|
||||
fi
|
||||
|
||||
for file (
|
||||
# Arch Linux. Must have pkgfile installed: https://wiki.archlinux.org/index.php/Pkgfile#Command_not_found
|
||||
/usr/share/doc/pkgfile/command-not-found.zsh
|
||||
# Homebrew: https://github.com/Homebrew/homebrew-command-not-found
|
||||
/opt/homebrew/Library/Homebrew/command-not-found/handler.sh
|
||||
/usr/local/Homebrew/Library/Homebrew/command-not-found/handler.sh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue