Update install.py

This commit is contained in:
2025-10-17 20:31:12 +00:00
parent f09bd44ae4
commit 0f15f96ea7

View File

@@ -5,6 +5,10 @@ linux_packages = [
'zsh'
]
linux_after_command = {
'zsh': 'chsh -s $(which zsh)'
}
os_type = platform.uname().system.lower()
is_linux = os_type == "linux"
@@ -31,6 +35,8 @@ def install(package):
else:
print(f"Install not supported for: {os_type}")
exit(1)
if is_linux and package in after_command:
os.system(linux_after_command[package])
def check_os():
if is_linux or is_macos or is_windows: