feat: shortname of zellij

feat: autostart zellij in nushell
This commit is contained in:
Ryan Yin
2023-12-27 18:29:16 +08:00
parent 8c71e7aade
commit 137e11e81f
2 changed files with 29 additions and 5 deletions

View File

@@ -17,12 +17,12 @@ HTTP_PROXY = "http://127.0.0.1:7890"
pl = plistlib.loads(NIX_DAEMON_PLIST.read_bytes())
# set http proxy
# pl["EnvironmentVariables"]["HTTP_PROXY"] = HTTP_PROXY
# pl["EnvironmentVariables"]["HTTPS_PROXY"] = HTTP_PROXY
pl["EnvironmentVariables"]["HTTP_PROXY"] = HTTP_PROXY
pl["EnvironmentVariables"]["HTTPS_PROXY"] = HTTP_PROXY
# remove http proxy
pl["EnvironmentVariables"].pop("HTTP_PROXY", None)
pl["EnvironmentVariables"].pop("HTTPS_PROXY", None)
# pl["EnvironmentVariables"].pop("HTTP_PROXY", None)
# pl["EnvironmentVariables"].pop("HTTPS_PROXY", None)
os.chmod(NIX_DAEMON_PLIST, 0o644)
NIX_DAEMON_PLIST.write_bytes(plistlib.dumps(pl))