Compare commits
2 Commits
123da2fdf5
...
fbebe5b845
Author | SHA1 | Date | |
---|---|---|---|
fbebe5b845 | |||
2168dab40b |
14
.zshrc
14
.zshrc
@ -88,14 +88,20 @@ function weather() {
|
|||||||
curl -sSL "https://wttr.in/$loc?"
|
curl -sSL "https://wttr.in/$loc?"
|
||||||
}
|
}
|
||||||
|
|
||||||
function proj {
|
function p {
|
||||||
local proj="$1"
|
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 e='$EDITOR'
|
||||||
alias s="du -sh"
|
alias s="du -sh"
|
||||||
alias sd="du -hd 1"
|
alias sd="du -hd 1"
|
||||||
|
Loading…
Reference in New Issue
Block a user