fix(zellij): change default prefix from z to zj

Avoid conflicts with popular directory jumpers (zoxide, z.lua, etc.)
by defaulting to "zj". Users can opt into "z" via ZSH_ZELLIJ_PREFIX_Z.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Hobeom 2026-03-09 21:00:38 +09:00
commit 6b292d300e
2 changed files with 24 additions and 18 deletions

View file

@ -2,11 +2,11 @@ if (( ! $+commands[zellij] )); then
return
fi
# Dynamic prefix: use "z" if no conflict, fall back to "zj"
if (( $+aliases[z] )); then
_zellij_prefix="zj"
else
# Dynamic prefix: use "zj" by default, use "z" if ZSH_ZELLIJ_PREFIX_Z is set and "z" is available
if [[ -n "$ZSH_ZELLIJ_PREFIX_Z" ]] && (( ! $+aliases[z] )); then
_zellij_prefix="z"
else
_zellij_prefix="zj"
fi
# Aliases