helix for zsh
This commit is contained in:
10
zsh/alias/helix_alias.sh
Normal file
10
zsh/alias/helix_alias.sh
Normal 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
|
||||
@@ -21,6 +21,7 @@ export ZSH_POLYJUICE_ALIAS_PATH="$ZSH_POLYJUICE_PATH/alias"
|
||||
export ZSH_POLYJUICE_SETTINGS_PATH="$ZSH_POLYJUICE_PATH/settings"
|
||||
export ZSH_POLYJUICE_FUNCTIONS_PATH="$ZSH_POLYJUICE_PATH/functions"
|
||||
export ZSH_POLYJUICE_STARSHIP_CONFIG_FILE="$ZSH_POLYJUICE_PATH/../starship/starship_default.toml"
|
||||
export ZSH_POLYJUICE_HELIX_CONFIG_FILE="$ZSH_POLYJUICE_PATH/../helix/config.toml"
|
||||
|
||||
# Load basic settings `zsh/settings`
|
||||
for _file in "$ZSH_POLYJUICE_SETTINGS_PATH"/*.sh; do
|
||||
|
||||
Reference in New Issue
Block a user