mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
refactor: automate erasing variables in uninstall
This commit is contained in:
parent
81f03702e6
commit
f1766dcfa0
2 changed files with 4 additions and 5 deletions
|
@ -281,7 +281,7 @@ end
|
|||
|
||||
## Uninstalling
|
||||
|
||||
You want to know how to uninstall Fisher and everything you've installed with it from your system. This command will purge all packages, cache, configuration and related files—all in the same session.
|
||||
You want to know how to uninstall Fisher and everything you've installed with it from your system. This command will purge all packages, cache, configuration and related files.
|
||||
|
||||
```fish
|
||||
fisher self-uninstall
|
||||
|
|
|
@ -188,10 +188,9 @@ function _fisher_self_uninstall
|
|||
command rm -Rf $file 2>/dev/null
|
||||
end | command sed "s|$HOME|~|" >&2
|
||||
|
||||
set -e fisher_cache
|
||||
set -e fisher_config
|
||||
set -e fisher_path
|
||||
set -e fisher_version
|
||||
for name in (set -n | command awk '/^fisher_/')
|
||||
set -e "$name"
|
||||
end
|
||||
|
||||
complete -c fisher --erase
|
||||
functions -e (functions -a | command awk '/^_fisher/') fisher
|
||||
|
|
Loading…
Reference in a new issue