refactor(plugins): remove old generated completion files

This removes .gitignore plugin files and adds a force-rm of the old completion file,
which ignores any errors if the file doesn't exist.
This commit is contained in:
Marc Cornellà 2021-09-15 18:47:51 +02:00
commit eb2eacaf0c
No known key found for this signature in database
GPG key ID: 0314585E776A9C1B
10 changed files with 16 additions and 6 deletions

View file

@ -1 +0,0 @@
_deno

View file

@ -12,6 +12,9 @@ alias dup='deno upgrade'
# COMPLETION FUNCTION
if (( $+commands[deno] )); then
# remove old generated completion file
command rm -f "${0:A:h}/_deno"
ver="$(deno --version)"
ver_file="$ZSH_CACHE_DIR/deno_version"
comp_file="$ZSH_CACHE_DIR/completions/_deno"