Compare commits

...

2 Commits

14
.zshrc
View File

@ -88,14 +88,20 @@ function weather() {
curl -sSL "https://wttr.in/$loc?"
}
function proj {
local proj="$1"
function p {
local project="$1"
if [[ ! -d "$DEVPATH/$proj" ]]; then echo "Unknown project $proj"; return; fi
if [[ ! -d "$DEVPATH/$project" ]]; then echo "Unknown project $project"; return; fi
cd "$DEVPATH/$proj"
cd "$DEVPATH/$project"
}
function _p {
compadd $(ls $DEVPATH)
}
compdef _p p
alias e='$EDITOR'
alias s="du -sh"
alias sd="du -hd 1"