From fbebe5b8456552adc74074b256a5971d6f507446 Mon Sep 17 00:00:00 2001 From: Kevin Cotugno Date: Fri, 23 Dec 2022 07:03:30 -0700 Subject: [PATCH] Add completion for p --- .zshrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.zshrc b/.zshrc index 8c8e6b9..d1af2d2 100644 --- a/.zshrc +++ b/.zshrc @@ -96,6 +96,12 @@ function p { cd "$DEVPATH/$project" } +function _p { + compadd $(ls $DEVPATH) +} + +compdef _p p + alias e='$EDITOR' alias s="du -sh" alias sd="du -hd 1"