mirror of
https://github.com/boxpositron/absolute-dotfiles.git
synced 2026-10-24 08:23:19 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user