feat(owt): add all and cd commands for workspaces across repos

- owt all lists the workspaces of every repo with their branch and
  source checkout, from any directory
- owt cd jumps into a workspace by name, repo/name or an fzf picker
  that starts filtered to the current repo
- An owt function in .zshrc performs the cd, since a script cannot
  change its parent shell's directory
This commit is contained in:
David Ibia
2026-10-06 23:02:29 +01:00
parent d0c2895797
commit 81e5c6be67
3 changed files with 90 additions and 0 deletions
+11
View File
@@ -357,6 +357,17 @@ sshm() { TERM=xterm-256color command sshm "$@"; }
source <(sshm completion zsh)
# `owt cd` jumps into an owt workspace. A script cannot change this shell's
# directory, so owt prints the path and this wrapper does the cd.
owt() {
if [[ "$1" == cd ]]; then
local dir
dir="$(command owt "$@")" && cd "$dir"
else
command owt "$@"
fi
}
export SSH_AUTH_SOCK=~/Library/Group\ Containers/2BUA8C4S2C.com.1password/t/agent.sock
# Connect to flowstate-remote over mosh instead of ssh. Mosh is UDP with no TCP