13 个版本

0.9.0 2024年1月7日
0.5.0 2023年1月9日
0.3.1 2022年6月18日
0.2.0 2021年7月11日
0.0.1 2020年12月2日

命令行工具 中排名 #2316

每月下载量 44

MIT 许可证

81KB
2K SLoC

Rust 1.5K SLoC // 0.0% comments Shell 421 SLoC // 0.1% comments

orbiter

一个跨壳插件和包管理器,深受 zinit 启发。目前仅支持 macos 和 linux,计划添加 Windows 支持

示例 ~/.orbiter.config.yml

- id: neovim
  resource:
    repo: neovim/neovim
    from_release: true
  exec: '**/bin/nvim'
  load: 'export VISUAL=nvim; export EDITOR="$VISUAL"; alias vi="$VISUAL"'

- id: vim-plug
  resource:
    repo: junegunn/vim-plug
  install: 'mkdir -p ~/.local/share/nvim/site/autoload;  ln -sf "$PWD/plug.vim" ~/.local/share/nvim/site/autoload/plug.vim'

- id: starship
  resource:
    repo: starship/starship
    from_release: true
  exec: '**/starship'
  install:
    zsh: '**/starship init zsh > init-starship.zsh'
  src:
    zsh: 'init-starship.zsh'

- id: ripgrep
  resource:
    repo: BurntSushi/ripgrep
    from_release: true
  exec: '**/rg'

- id: zoxide
  resource:
    repo: ajeetdsouza/zoxide
    from_release: true
  exec: '**/zoxide'
  install:
    zsh: '**/zoxide init zsh > init-zoxide.zsh'
    bash: '**/zoxide init bash > init-zoxide.bash'
    fish: '**/zoxide init fish > init-zoxide.fish'
  src:
    zsh: 'init-zoxide.zsh'
  load: 'alias cd=z'

- id: fd
  resource:
    repo: sharkdp/fd
    from_release: true
  exec: '**/fd'
  load: "alias find='fd'"

- id: gitui
  resource:
    repo: extrawurst/gitui
    from_release: true
  exec: '**/gitui'

- id: delta
  resource:
    repo: dandavison/delta
    from_release: true
  exec: '**/delta'
  install: |
    git config --global pager.diff delta
    git config --global pager.log delta
    git config --global pager.reflog delta
    git config --global pager.show delta
    git config --global interactive.diffFilter "delta --color-only --features=interactive"
    git config --global delta.features decorations
    git config --global delta.interactive.keep-plus-minus-markers false
    git config --global delta.decorations.commit-decoration-style "blue ol"
    git config --global delta.decorations.commit-style raw
    git config --global delta.decorations.file-style omit
    git config --global delta.decorations.hunk-header-decoration-style blue box
    git config --global delta.decorations.hunk-header-file-style red
    git config --global delta.decorations.hunk-header-line-number-style "#067a00"
    git config --global delta.decorations.hunk-header-style "file line-number syntax"

- id: exa
  resource:
    repo: ogham/exa
    from_release: true
  exec: '**/exa'
  load: 'alias ls="exa --icons --color always"; alias ll=''ls -la'''

- id: bat
  resource:
    repo: sharkdp/bat
    from_release: true
  exec: '**/bat'
  load: 'alias cat=bat'

- id: bottom
  resource:
    repo: clementtsang/bottom
    from_release: true
  exec: '**/btm'
  load: 'alias top=btm'

- id: zellij
  resource:
    repo: zellij-org/zellij
    from_release: true
  exec: '**/zellij'

- id: direnv
  resource:
    repo: direnv/direnv
    from_release: true
  install:
    zsh: 'mv direnv* direnv; chmod +x ./direnv; ./direnv hook zsh > zhook.zsh'
  src:
    zsh: zhook.zsh
  load: export DIRENV_LOG_FORMAT=""
  exec: '**/direnv'

- id: gh
  resource:
    repo: cli/cli
    from_release: true
  exec: '**/gh'

- id: exercism
  resource:
    repo: exercism/cli
    from_release: true
  exec: '**/exercism'

- id: dprint
  resource:
    repo: dprint/dprint
    from_release: true
  exec: '**/dprint'

- id: fzf
  resource:
    repo: junegunn/fzf-bin
    from_release: true
  exec: '**/fzf'

- id: kind
  resource:
    repo: kubernetes-sigs/kind
    from_release: true
  install: 'mv ./kind* kind; chmod +x ./kind'
  exec: kind

- id: zsh-autosuggestions
  resource:
    repo: zsh-users/zsh-autosuggestions
  src:
    zsh: zsh-autosuggestions.zsh

- id: fast-syntax-highlighting
  resource:
    repo: z-shell/F-Sy-H
  src:
    zsh: f-sy-h.plugin.zsh

执行顺序

(如果尚未存在:init -> clone/update -> extract (支持自动提取 "zip", "tar.gz", "deb") -> install)

(插件脚本加载) -> src -> multisrc -> load

依赖

~12–26MB
~403K SLoC