mirror of
https://gitee.com/mirrors/ohmyzsh.git
synced 2026-10-14 00:04:22 +08: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:
10 files changed
+16
-6
No files matched your search
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user