【文件属性】:
文件名称:homebrew-command-not-found::magnifying_glass_tilted_left:在macOS上与Homebrew等效的Ubuntu命令-未找到
文件大小:99KB
文件格式:ZIP
更新时间:2021-02-03 12:31:20
homebrew tap cmd HomebrewRuby
找不到自制程序命令
该项目为macOS上的Homebrew用户复制了Ubuntu的command-not-found 。
在Ubuntu上,当您尝试使用本地不存在但可通过软件包获得的命令时,Bash会建议您安装该命令。 使用此脚本,您可以在macOS上复制此功能:
# on Ubuntu
$ when
The program ' when ' is currently not installed. You can install it by typing:
sudo apt-get install when
# on macOS with Homebrew
$ when
The program ' when ' is currently not installed. You can install it by typing:
brew install when
支持超过5000个公式,代表超过17000个不同的命令(占Homebrew主仓库的100%)。
安装
首先,点击此存储库:
brew tap homebrew/command-not-found
Bash和Zsh
【文件预览】:
homebrew-command-not-found-master
----cmd()
--------which-formula.rb(802B)
--------brew-command-not-found-init.rb(1KB)
--------which-update.rb(903B)
----handler.sh(2KB)
----Cookbook.md(471B)
----Rakefile(986B)
----.github()
--------workflows()
----executables.txt(234KB)
----LICENSE(1KB)
----handler.fish(678B)
----.gitignore(17B)
----lib()
--------which_update.rb(2KB)
--------which_formula.rb(2KB)
--------executables_db.rb(4KB)
----README.md(2KB)