feat(Bash): support bash
This commit is contained in:
20
bash/aliases/helix_alias.sh
Normal file
20
bash/aliases/helix_alias.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
pj_helix() {
|
||||
if command -v helix >/dev/null 2>&1; then
|
||||
command helix -c "$BASH_POLYJUICE_HELIX_CONFIG_FILE" "$@"
|
||||
elif command -v hx >/dev/null 2>&1; then
|
||||
command hx -c "$BASH_POLYJUICE_HELIX_CONFIG_FILE" "$@"
|
||||
else
|
||||
echo "HELIX/HX is not installed"
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
helix() {
|
||||
pj_helix "$@"
|
||||
}
|
||||
|
||||
hx() {
|
||||
pj_helix "$@"
|
||||
}
|
||||
Reference in New Issue
Block a user