From 486447770e8281919b41d53f7b26954de4c6d944 Mon Sep 17 00:00:00 2001 From: Sall Date: Sun, 23 Jun 2024 12:56:51 +0100 Subject: [PATCH] Remove incorrect instructions (#589) * Update 01_installation.mdx Signed-off-by: Sall * Update 01_installation.mdx Signed-off-by: Sall --------- Signed-off-by: Sall --- docs/getting_started/01_installation.mdx | 37 ++---------------------- 1 file changed, 2 insertions(+), 35 deletions(-) diff --git a/docs/getting_started/01_installation.mdx b/docs/getting_started/01_installation.mdx index a400e094..7a2f4c47 100644 --- a/docs/getting_started/01_installation.mdx +++ b/docs/getting_started/01_installation.mdx @@ -12,40 +12,6 @@ import Tabs from "@theme/Tabs"; import TabItem from "@theme/TabItem"; import Link from "@docusaurus/Link"; -## Quick setup {#quick-setup} - -Place the following snippet to the .zshrc file: - - - - -```shell title="~/.zshrc" -source <(curl -sL init.zshell.dev); zzinit -``` - - - - -:::caution - -This setup method requires manually verifying the sha256 [checksum][checksum-txt] for a file lib/zsh/init.zsh every time the content is changed in the repository. - -::: - -```shell showLineNumbers title="~/.zshrc" -local cs_ok='7fab1ecb8d2ffbdb4aa98dd1e51cebaeaa4d8137e1de11938f3e0df24af262bb' -local cs_get=$(sha256sum <(curl -sL init.zshell.dev) | awk '{print $1}') -[[ $cs_ok == $cs_get ]] && { source <(curl -sL init.zshell.dev); zzinit; } || { - print -P "%F{160}▓▒░ Houston, we have a problem, the %F{226}$cs_get%F{160} do not match\!%f%b"; return 1 -} -unset cs_ok cs_get -``` - - - - -Reload the shell with exec zsh -il and run zi -h for usage information. - ## Automated setup {#automated-setup} :::tip @@ -135,7 +101,8 @@ Set up the install location and create a directory: ```shell showLineNumbers typeset -Ag ZI -typeset -gx ZI[HOME_DIR]="${HOME}/.zi" ZI[BIN_DIR]="${ZI[HOME_DIR]}/bin" +typeset -gx ZI[HOME_DIR]="${HOME}/.zi" +typeset -gx ZI[BIN_DIR]="${HOME}/.zi/bin" command mkdir -p "$ZI[BIN_DIR]" ```