4 个版本
0.1.3 | 2022年10月24日 |
---|---|
0.1.2 | 2022年8月2日 |
0.1.1 | 2022年8月1日 |
0.1.0 | 2022年8月1日 |
#93 in #productivity
54KB
225 行
nvim-updater-rs ~ Neovim 命令行更新器
描述
如果你在 Neovim 及其配置上花费了任何时间,你可能经常会更新它以获取最新功能。
更新应该是快速且简单的,这样你就可以每天以自动化的(或不!)方式运行它。
安装
从 crates.io: cargo install nvim-updater-rs
用法
使用 nvim-updater-rs --help
在命令行中显示帮助。
nvim-updater-rs 0.1.3
Nicolas Picard
A Neovim command-line updater.
USAGE:
nvim-updater-rs [OPTIONS]
OPTIONS:
-c, --check Check only if a new version is available
-d, --destination <DESTINATION> Executable directory destination [default: /usr/bin/nvim]
-h, --help Print help information
-V, --version Print version information
示例输出
检查
▶ nvim-updater-rs --check
Gathering information on versions
✅ Already at the latest version: latest=0a049c322 current=0a049c322
自定义目标位置
默认情况下,可执行文件的输出是 /usr/bin/nvim
。根据你的环境,你可能没有权限写入此目录。你可以通过提供 -d
或 --destination
选项来覆盖此选项。
▶ nvim-updater-rs -d /usr/bin/nvim
Gathering information on versions
✨ A new version is available: latest=0a049c322 current=8952def50
Downloading https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage
[00:00:00] [████████████████████] 14.63 MiB/14.63 MiB [ETA: 0s] [speed: 32.35 MiB/s]
✅ Successfully updated /usr/bin/nvim to version 0a049c322
依赖关系
~11–25MB
~380K SLoC