From c0408bfe5e44106f07bf0cc541c9a0930021fef1 Mon Sep 17 00:00:00 2001 From: Oluf Lorenzen Date: Mon, 15 Jul 2024 11:17:44 +0200 Subject: [PATCH] doc(installation): extend zinit options (#65) zinit can also download and extract from gh-releases --- src/content/docs/guide/installation.mdx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/content/docs/guide/installation.mdx b/src/content/docs/guide/installation.mdx index 60a1a09..161fef1 100644 --- a/src/content/docs/guide/installation.mdx +++ b/src/content/docs/guide/installation.mdx @@ -87,6 +87,19 @@ If you don't wish to use the installer, the manual installation steps are as fol pkg install atuin ``` + + Atuin is installable from github-releases directly: + + ```shell + # line 1: `atuin` binary as command, from github release, only look at .tar.gz files, use the `atuin` file from the extracted archive + # line 2: setup at clone(create init.zsh, completion) + # line 3: pull behavior same as clone, source init.zsh + zinit ice as"command" from"gh-r" bpick"atuin-*.tar.gz" mv"atuin*/atuin -> atuin" \ + atclone"./atuin init zsh > init.zsh; ./atuin gen-completions --shell zsh > _atuin" \ + atpull"%atclone" src"init.zsh" + zinit light atuinsh/atuin + ``` + Atuin builds on the latest stable version of Rust, and we make no promises regarding older versions. We recommend using [rustup](https://rustup.rs/). @@ -121,6 +134,7 @@ After installing, remember to restart your shell. ```shell + # if you _only_ want to install the shell-plugin, do this; otherwise look above for a "everything via zinit" solution zinit load atuinsh/atuin ```