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
This commit is contained in:
Marcus
2026-02-24 21:27:37 +00:00
parent 396c36f5a9
commit 4ae0922ba3
2 changed files with 1 additions and 2 deletions

2
.zshrc
View File

@@ -179,7 +179,7 @@ function clip {
function mkcd {
: "${1:?where?}"
[[ -e $1 ]] && { echo "file exists"; return 1 }
mkdir -p $1 && cd $1
mkdir -p "$1" && cd "$1"
}
function cdtmp {