Adds a shell script that installs the @earendil-works/pi-coding-agent and pi-acp npm packages globally if the `pi` command is not found. Uses paru to install Node.js and npm on Arch-based systems when needed.
10 lines
199 B
Bash
Executable File
10 lines
199 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
if [[ ! -x "$(command -v pi)" ]]; then
|
|
node -v || paru -Sy --noconfirm nodejs npm
|
|
npm install -g --ignore-scripts @earendil-works/pi-coding-agent
|
|
npm install -g pi-acp
|
|
fi
|
|
|
|
|