未验证 提交 eeb288e6 编写于 作者: F Frost Ming

use python to call pdm

上级 6f0d1ab1
#compdef pdm
PDM_PIP_INDEXES=($(command pdm config pypi.url))
PYTHON="%{python_executable}"
PDM_PIP_INDEXES=($(command ${PYTHON} -m pdm config pypi.url))
_pdm() {
emulate -L zsh -o extended_glob
......@@ -112,7 +112,7 @@ _pdm() {
'2:value:_files' && return 0
if [[ $state == keys ]]; then
local l mbegin mend match keys=()
for l in ${(f)"$(command pdm config)"}; do
for l in ${(f)"$(command ${PYTHON} -m pdm config)"}; do
if [[ $l == (#b)" "#(*)" = "(*) ]]; then
keys+=("$match[1]:$match[2]")
fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册