Bash-Snippets 代码仓库提供了一组无依赖小型脚本,封装了一些常用的bash脚本功能,对外提供API命令供使用。
所有这些脚本都在 macOS 和 Linux 上进行了严格测试,这些脚本中的大多数已经在 Windows 10 和官方开发者 bash 实例上进行了测试。不适用于 Cygwin 或 Mysys2。
开源地址:https://github.com/alexanderepstein/Bash-Snippets
> git clone https://github.com/alexanderepstein/Bash-Snippets
> cd Bash-Snippets
> ./install.shDo you wish to install bak2dvd [Y/n]: Y
Installing bak2dvd: Success
...
Do you wish to install weather [Y/n]: y
Installing weather: Success
Do you wish to install ytview [Y/n]: y
Installing ytview: Success
(⌐■_■)
Bash Snippets version 1.23.0
https://github.com/alexanderepstein/Bash-Snippets
安装每一个都需要确认,如果想默认全部安装就可以用
./install.sh all
MacOS安装
brew install bash-snippetsUbuntu安装
sudo add-apt-repository ppa:navanchauhan/bash-snippets
$ sudo apt update
$ sudo apt install bash-snippets> currency USD CNY 1
> weather
搞不懂是个啥
> weather moon
> qrify "开源日记"
前10名
> cryptocurrency
更多功能广大网友可以继续挖掘。