27 lines
507 B
Bash
27 lines
507 B
Bash
#!/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
|
|
}
|