function uninstall --on-event uninstall_proxy
  # Unset proxy variables
  set -l envars http_proxy HTTP_PROXY \
  https_proxy HTTPS_PROXY \
  ftp_proxy FTP_PROXY \
  all_proxy ALL_PROXY
  for envar in $envars
    set -e $envar
  end

  # Erase proxy functions
  functions -e noproxy proxy __proxy.set
end


# Unset proxy variables
set -l envars http_proxy HTTP_PROXY \
  https_proxy HTTPS_PROXY \
  ftp_proxy FTP_PROXY \
  all_proxy ALL_PROXY

for envar in $envars
  set -e $envar
end

# Erase proxy functions
functions -e noproxy proxy __proxy.set

Uninstall immediately, rather than waiting for an event.
Uninstall immediately, rather than waiting for an event.

oh-my-fish/plugin-proxy