From 7095fac7dc79b34139959e1e646b24ba9e217ff4 Mon Sep 17 00:00:00 2001 From: Kevin Cotugno Date: Mon, 20 Dec 2021 06:18:14 -0700 Subject: [PATCH] Add proj func --- .zshrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.zshrc b/.zshrc index 5de28e9..22f801f 100644 --- a/.zshrc +++ b/.zshrc @@ -86,6 +86,14 @@ function weather() { curl -sSL "wttr.in/$loc?" } +function proj { + local proj="$1" + + if [[ ! -d "$DEVPATH/$proj" ]]; then echo "Unknown project $proj"; return; fi + + cd "$DEVPATH/$proj" +} + alias e='$EDITOR' alias s="du -sh"