百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
Z

zr

> 编程语言
开源

由 Rust 编写的 zsh 插件管理器

193 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

由 Rust 编写的 zsh 插件管理器

zr(at)

nimble zsh plugin manager

zr 1.2.1
by Jonathan Dahan 

Example

.  ~/.config/zr.zsh

fi

source ~/.config/zr.zsh

…

zsh $ hyperfine --warmup 3
--command-name "generate shell script"
'zsh -d -f -l -c "source benchmark.zsh && zrinit && exit"'
--command-name "generate and load shell script"
'zsh -d -f -l -c "source benchmark.zsh && . <(zrinit) && exit"'

Benchmark 1: generate shell script Time (mean ± σ): 8.2 ms ± 1.3 ms [User: 3.4 ms, System: 3.7 ms] Range (min … max): 7.2 ms … 12.1 ms 258 runs

Benchmark 2: generate and load shell script Time (mean ± σ): 42.1 ms ± 2.6 ms [User: 22.4 ms, System: 58.2 ms] Range (min … max): 38.7 ms … 51.2 ms 54 runs

bash

```zsh
# benchmark.zsh
function zrinit {
  XDG_CACHE_HOME=/tmp/zrbenchmark zr sorin-ionescu/prezto.git/modules/git/alias.zsh \
    sorin-ionescu/prezto.git/modules/history/init.zsh \
    junegunn/fzf.git/shell/key-bindings.zsh \
    zsh-users/zsh-autosuggestions \
    zdharma/fast-syntax-highlighting \
    molovo/tipz \
    geometry-zsh/geometry \
    jedahan/geometry-hydrate \
    jedahan/geometry-todo \
    geometry-zsh/geometry \
    ael-code/zsh-colored-man-pages \
    momo-lab/zsh-abbrev-alias \
    jedahan/alacritty-completions \
    zpm-zsh/ssh
}

publishing

bash
git tag 1.2.1
git push --tags
cargo publish --locked

thanks

  • SX91 for linux fixes
  • alanpearce for bug reports and nix package
  • nshtg for bug reports and windows fix
  • foray1010 for improving install instructions
  • Avi-D-coder for adding completions support
  • ralsei for prodding to update crates.io
  • tekumara for helping figure out --update
  • myrovh for fixing panics on some linux systems
  • TimB87 for adding openssl 3 support
  • olets for adding recursive clone support
  • everyone on #rust-beginners

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rust

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言