| 1 | #!/usr/bin/env bash |
| 2 | # |
| 3 | # Usage: |
| 4 | # devtools/claude.sh <function name> |
| 5 | # |
| 6 | # Related: |
| 7 | # https://github.com/oils-for-unix/oils/wiki/AI-Contribution-Policy |
| 8 | |
| 9 | set -o nounset |
| 10 | set -o pipefail |
| 11 | set -o errexit |
| 12 | |
| 13 | install() { |
| 14 | npm install @anthropic-ai/claude-code |
| 15 | } |
| 16 | |
| 17 | run() { |
| 18 | # for locally installed stuff |
| 19 | npx claude |
| 20 | } |
| 21 | |
| 22 | show-junk() { |
| 23 | # Too much junk! They should have confined it to one dir |
| 24 | |
| 25 | tree ~/.claude |
| 26 | echo |
| 27 | |
| 28 | ls -l ~/.claude.* |
| 29 | } |
| 30 | |
| 31 | "$@" |