mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-05-11 05:55:17 +00:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user