Compare commits

..

1 Commits

Author SHA1 Message Date
Marcus
80ecee5c4a fix: quote variables and use zsh idioms in shell config
- Quote ZINIT_HOME in plugin manager setup
- Quote $1 in mkcd function
- Use [[ ]] instead of [ ] in yazi wrapper (zsh idiom)
- Remove double blank line in .vimrc

Nightshift-Task: lint-fix
Nightshift-Ref: https://github.com/marcus/nightshift
2026-02-24 21:28:49 +00:00

4
.zshrc
View File

@@ -36,8 +36,8 @@ zmodload zsh/stat
# plugin manager
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}}/.zinit.git"
[[ ! -d "$ZINIT_HOME" ]] && mkdir -p "$(dirname "$ZINIT_HOME")"
[[ ! -d "$ZINIT_HOME/.git" ]] && git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
[ ! -d "$ZINIT_HOME" ] && mkdir -p "$(dirname $ZINIT_HOME)"
[ ! -d "$ZINIT_HOME/.git" ] && git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
source "${ZINIT_HOME}/zinit.zsh"
zinit light zsh-users/zsh-autosuggestions