Unverified Commit d57131dc authored by Septs's avatar Septs Committed by GitHub
Browse files

fix(shell-proxy): change NAME env variable for WSL clash (#9447)

parent e92a4667
......@@ -30,7 +30,7 @@ def merge(mapping: dict):
class CommandSet:
proxies = make_proxies(get_http_proxy())
aliases = {
_: "env NAME=%s %s" % (_, ssh_agent)
_: "env __SSH_PROGRAM_NAME__=%s %s" % (_, ssh_agent)
for _ in ("ssh", "sftp", "scp", "slogin", "ssh-copy-id")
}
......
......@@ -6,7 +6,7 @@ import sys
ssh_proxy = os.path.join(os.path.dirname(__file__), "ssh-proxy.py")
argv = [
os.environ.get("NAME", "ssh"),
os.environ.get("__SSH_PROGRAM_NAME__", "ssh"),
"-o",
"ProxyCommand={} %h %p".format(ssh_proxy),
"-o",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment