Commit 02d6e331 authored by gregor herrmann's avatar gregor herrmann

zsh completion: dpt-{cd,co}: complete with path to DPT_PACKAGES

Gbp-Dch: Ignore
parent 4d2d61e8
#compdef dpt
_dpt_conf() {
for f in ~/.dpt.conf ~/.config/dpt.conf; do
if [ -r "$f" ]; then
. "$f"
fi
done
}
_dpt() {
_arguments \
'(-h --help)'{-h,--help}'[show help]' \
......@@ -52,8 +60,9 @@ _dpt_commands() {
}
_dpt_cd() {
_dpt_conf
_arguments \
'*:package name: '
'*:package name:_files -W ${DPT_PACKAGES:-$HOME}'
}
_dpt_ci-failures() {
......@@ -75,8 +84,9 @@ _dpt_clean-mr-repos() {
}
_dpt_checkout() {
_dpt_conf
_arguments \
'*:package name: '
'*:package name:_files -W ${DPT_PACKAGES:-$HOME}'
}
_dpt_dch-note() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment