mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01: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:
parent
d2269180b0
commit
eb2eacaf0c
10 changed files with 16 additions and 6 deletions
2
plugins/fnm/.gitignore
vendored
2
plugins/fnm/.gitignore
vendored
|
|
@ -1,2 +0,0 @@
|
|||
_fnm
|
||||
|
||||
|
|
@ -1,4 +1,7 @@
|
|||
if (( $+commands[fnm] )); then
|
||||
# remove old generated completion file
|
||||
command rm -f "${0:A:h}/_fnm"
|
||||
|
||||
ver="$(fnm --version)"
|
||||
ver_file="$ZSH_CACHE_DIR/fnm_version"
|
||||
comp_file="$ZSH_CACHE_DIR/completions/_fnm"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue