diff options
author | Marc Cornellà <hello@mcornella.com> | 2021-09-15 18:47:51 +0200 |
---|---|---|
committer | Marc Cornellà <hello@mcornella.com> | 2021-09-15 18:47:51 +0200 |
commit | eb2eacaf0c46ace8e0eb3543199851a8249338fc (patch) | |
tree | e62baf5978bd63f8ea58abcc07dc2cff820e247f /plugins/rustup/rustup.plugin.zsh | |
parent | d2269180b074263f4a0d3df3f9de15a1abae8110 (diff) | |
download | zsh-eb2eacaf0c46ace8e0eb3543199851a8249338fc.tar.gz zsh-eb2eacaf0c46ace8e0eb3543199851a8249338fc.tar.bz2 zsh-eb2eacaf0c46ace8e0eb3543199851a8249338fc.zip |
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.
Diffstat (limited to 'plugins/rustup/rustup.plugin.zsh')
-rw-r--r-- | plugins/rustup/rustup.plugin.zsh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/rustup/rustup.plugin.zsh b/plugins/rustup/rustup.plugin.zsh index 8740f255a..c6efc1b13 100644 --- a/plugins/rustup/rustup.plugin.zsh +++ b/plugins/rustup/rustup.plugin.zsh @@ -1,4 +1,7 @@ if (( $+commands[rustup] )); then + # remove old generated completion file + command rm -f "${0:A:h}/_rustup" + ver="$(rustup --version 2>/dev/null)" ver_file="$ZSH_CACHE_DIR/rustup_version" comp_file="$ZSH_CACHE_DIR/completions/_rustup" |