8 lines
178 B
Plaintext
8 lines
178 B
Plaintext
#autoload
|
|
pdir() {
|
|
local proj
|
|
proj="${PROJECT:-$@}"
|
|
[[ -z "$proj" ]] && { print -u2 "usage: pdir <project>"; return 2; }
|
|
cd -- "$(dcsctl dir ${(As./.)proj})" || return
|
|
}
|