Move the completion file to the cache dir

This commit is contained in:
Rodolphe Bréard 2021-09-12 11:02:44 +02:00
parent f71325a367
commit 71b5995121
3 changed files with 5 additions and 12 deletions

View file

@ -1,15 +1,7 @@
# pip zsh completion start
function _pip_completion {
local words cword
read -Ac words
read -cn cword
reply=( $( COMP_WORDS="$words[*]" \
COMP_CWORD=$(( cword-1 )) \
PIP_AUTO_COMPLETE=1 $words[1] ) )
}
compctl -K _pip_completion pip
# pip zsh completion end
# create the missing directories
[ ! -d "$COMPDIR" ] && mkdir -p "$COMPDIR"
# transmission
if hash transmission-daemon 2>/dev/null; then
transmission-daemon
fi