From 017722fdb7bbb84d6d0afe702504e1e0890f958f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Fo=CC=88rster?= Date: Tue, 5 Aug 2025 21:06:40 +0200 Subject: [PATCH] update --- .zshrc | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.zshrc b/.zshrc index 91609fe..e0f3eac 100644 --- a/.zshrc +++ b/.zshrc @@ -46,6 +46,14 @@ HIST_STAMPS="dd.mm.yyyy" # Would you like to use another custom folder than $ZSH/custom? # ZSH_CUSTOM=/path/to/new-custom-folder +# https://wiki.zshell.dev/docs/getting_started/installation +typeset -A ZI +ZI[BIN_DIR]="${HOME}/.zi/bin" +source "${ZI[BIN_DIR]}/zi.zsh" + +#zi ice has'eza' atinit'AUTOCD=1' +#zi light z-shell/zsh-eza + # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) @@ -100,3 +108,19 @@ PERL_MB_OPT="--install_base \"/Users/eragos/perl5\""; export PERL_MB_OPT; PERL_MM_OPT="INSTALL_BASE=/Users/eragos/perl5"; export PERL_MM_OPT; cd ~ + +export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm +[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion +if [[ ! -f $HOME/.zi/bin/zi.zsh ]]; then + print -P "%F{33}▓▒░ %F{160}Installing (%F{33}z-shell/zi%F{160})…%f" + command mkdir -p "$HOME/.zi" && command chmod go-rwX "$HOME/.zi" + command git clone -q --depth=1 --branch "main" https://github.com/z-shell/zi "$HOME/.zi/bin" && \ + print -P "%F{33}▓▒░ %F{34}Installation successful.%f%b" || \ + print -P "%F{160}▓▒░ The clone has failed.%f%b" +fi +source "$HOME/.zi/bin/zi.zsh" +autoload -Uz _zi +(( ${+_comps} )) && _comps[zi]=_zi +# examples here -> https://wiki.zshell.dev/ecosystem/category/-annexes +zicompinit # <- https://wiki.zshell.dev/docs/guides/commands