21 lines
361 B
Bash
21 lines
361 B
Bash
#!/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 "$@"
|
|
}
|