helix for zsh

This commit is contained in:
2026-02-01 22:02:25 +08:00
parent e86f9d47e7
commit 3d22ed9633
3 changed files with 30 additions and 0 deletions

10
zsh/alias/helix_alias.sh Normal file
View File

@@ -0,0 +1,10 @@
if (( $+commands[helix] )); then
alias helix="helix -c $ZSH_POLYJUICE_HELIX_CONFIG_FILE"
alias hx="helix -c $ZSH_POLYJUICE_HELIX_CONFIG_FILE"
elif (( $+commands[hx] )); then
alias helix="hx -c $zsh_polyjuice_helix_config_file"
alias hx="hx -c $zsh_polyjuice_helix_config_file"
else
alias helix="echo HELIX is not installed"
alias hx="echo HELIX/HX is not installed"
fi