mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-17 04:29:14 +02:00
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:
parent
c733b0af53
commit
6b292d300e
2 changed files with 24 additions and 18 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue