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/gh/gh.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/gh/gh.plugin.zsh')
-rw-r--r-- | plugins/gh/gh.plugin.zsh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/gh/gh.plugin.zsh b/plugins/gh/gh.plugin.zsh index a346ccf65..3e4cdee5e 100644 --- a/plugins/gh/gh.plugin.zsh +++ b/plugins/gh/gh.plugin.zsh @@ -1,5 +1,8 @@ # Autocompletion for the GitHub CLI (gh). if (( $+commands[gh] )); then + # remove old generated completion file + command rm -f "${0:A:h}/_gh" + ver="$(gh --version)" ver_file="$ZSH_CACHE_DIR/gh_version" comp_file="$ZSH_CACHE_DIR/completions/_gh" |