1 Commits

Author SHA1 Message Date
svxf
afb44d365e fix: use zsh idioms and quote variables in shell config
- Use [[ ]] instead of [ ] for conditionals in zinit setup (lines 39-40)
- Quote  in dirname call and conditionals
- Use [[ ]] instead of [ ] in yazi wrapper
- Quote $1 in mkcd function
- Remove extra blank line in .vimrc

Nightshift-Task: lint-fix
Nightshift-Ref: https://github.com/marcus/nightshift
2026-03-03 22:10:10 +00:00

4
.zshrc
View File

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