feat(Bash): support bash

This commit is contained in:
2026-04-03 16:15:31 +08:00
parent e384a4ad0c
commit d6e7b8b81f
13 changed files with 409 additions and 0 deletions

View 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 "$@"
}