Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/owletto
15 changes: 10 additions & 5 deletions scripts/task-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,25 @@
#
# Optional shell-function sugar — `make task-setup` does the setup, then you
# still have to `cd <path> && claude` by hand. If you want one command that
# also moves your shell and launches claude, add this to ~/.zshrc:
# also moves your shell and launches a tool, add this to ~/.zshrc:
#
# task-start() {
# local name="$1"; local repo="$HOME/Code/lobu"
# local name="$1"; shift
# local repo="$HOME/Code/lobu"
# "$repo/scripts/task-setup.sh" "$name" || return $?
# cd "$repo/.claude/worktrees/$name" && exec claude
# cd "$repo/.claude/worktrees/$name" && exec "${@:-claude}"
# }
# task-resume() {
# local name="$1"; local repo="$HOME/Code/lobu"
# local name="$1"; shift
# local repo="$HOME/Code/lobu"
# [[ -d "$repo/.claude/worktrees/$name" ]] \
# || { echo "no such worktree: $name"; return 1; }
# cd "$repo/.claude/worktrees/$name" && exec claude
# cd "$repo/.claude/worktrees/$name" && exec "${@:-claude}"
# }
#
# Usage: `task-start fix-sse-leak` (defaults to claude), or
# `task-start fix-sse-leak codex` / `task-start fix-sse-leak zsh`.
#
# The cd + exec must live in the shell function (not a Makefile target or this
# script) so that the parent terminal actually moves and Warp/iTerm detect the
# new working directory.
Expand Down
Loading