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

1
.vimrc
View File

@@ -24,7 +24,6 @@ set backupdir=~/.vim/backup//
set nobackup set nobackup
set mouse=a " mouse support set mouse=a " mouse support
noremap <Up> <NOP> noremap <Up> <NOP>
noremap <Down> <NOP> noremap <Down> <NOP>
noremap <Left> <NOP> noremap <Left> <NOP>

2
.zshrc
View File

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