aliases: Add -local variants to run tools on the host
The opencode, claude, and pi functions wrap the tools in the Docker container. Add opencode-local, claude-local, and pi-local so the real host binaries can be invoked directly when container isolation is not needed. They use `command` to bypass the wrapping functions.
This commit is contained in:
parent
5c2f3ae83c
commit
1b35ab0b2a
1 changed files with 14 additions and 0 deletions
|
|
@ -19,3 +19,17 @@ pi() {
|
||||||
agent-container() {
|
agent-container() {
|
||||||
python3 "$AGENT_CONTAINER_DIR/agent-container.py" "$@"
|
python3 "$AGENT_CONTAINER_DIR/agent-container.py" "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Local variants: run the tools directly on the host, bypassing the container.
|
||||||
|
# `command` skips the shell functions above so the real binaries are used.
|
||||||
|
opencode-local() {
|
||||||
|
command opencode "$@"
|
||||||
|
}
|
||||||
|
|
||||||
|
claude-local() {
|
||||||
|
command claude "$@"
|
||||||
|
}
|
||||||
|
|
||||||
|
pi-local() {
|
||||||
|
command pi "$@"
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue