From 1a7db61a91922ddc4f936efe43114782523616ce Mon Sep 17 00:00:00 2001 From: "Chad Wade Day, Jr" Date: Fri, 9 Jun 2023 09:18:30 -0700 Subject: [PATCH] add pdm shell completion --- .zshrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.zshrc b/.zshrc index e7e1266..5700305 100644 --- a/.zshrc +++ b/.zshrc @@ -24,6 +24,12 @@ if [ -d /usr/share/doc/yadm/completion/zsh ]; then fpath=(/usr/share/doc/yadm/completion/zsh $fpath) fi +mkdir -p ~/.zfunc +fpath+=("$HOME/.zfunc") +if command -v pdm > /dev/null 2>&1; then + pdm completion zsh > ~/.zfunc/_pdm +fi + # Enable advanced auto completion if command -v brew >/dev/null 2>&1 && [ -n "$ZSH_VERSION" ]; then # Brew install zsh to "insecure" directories, -i silently ignores the results