function init -a path --on-event init_proxy
    if set -q proxy_host
       __proxy.set "http://$proxy_host"
    end
end


if set -q proxy_host
  __proxy.set "http://$proxy_host"
end

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

oh-my-fish/plugin-proxy