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

26
bash/functions/check.sh Normal file
View File

@@ -0,0 +1,26 @@
#!/usr/bin/env bash
pj_check() {
local missing=0
local cmd
for cmd in zoxide fzf starship python3 jq; do
if ! command -v "$cmd" >/dev/null 2>&1; then
echo "$cmd is not installed."
missing=1
fi
done
if [[ "$missing" -eq 0 ]]; then
echo "All core tools are available."
fi
}
pj_check_tools() {
local cmd
for cmd in git python cargo verilator iverilog javac sbt; do
if ! command -v "$cmd" >/dev/null 2>&1; then
echo "$cmd is not installed."
fi
done
}