Only show directories in p completion
This commit is contained in:
parent
fbebe5b845
commit
ecaddafd78
10
.zshrc
10
.zshrc
@ -96,11 +96,13 @@ function p {
|
|||||||
cd "$DEVPATH/$project"
|
cd "$DEVPATH/$project"
|
||||||
}
|
}
|
||||||
|
|
||||||
function _p {
|
if [[ $(command -v fd) ]]; then
|
||||||
compadd $(ls $DEVPATH)
|
function _p {
|
||||||
}
|
compadd $(fd --max-depth=1 --type=d . $DEVPATH | xargs basename -a)
|
||||||
|
}
|
||||||
|
|
||||||
compdef _p p
|
compdef _p p
|
||||||
|
fi
|
||||||
|
|
||||||
alias e='$EDITOR'
|
alias e='$EDITOR'
|
||||||
alias s="du -sh"
|
alias s="du -sh"
|
||||||
|
Loading…
Reference in New Issue
Block a user