feat(Bash): support bash
This commit is contained in:
26
bash/functions/check.sh
Normal file
26
bash/functions/check.sh
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user