Update install.py

This commit is contained in:
2025-10-26 09:41:38 +00:00
parent 7cf30f71f1
commit b52a49e187

View File

@@ -16,6 +16,10 @@ linux_after_command = {
'zsh': 'sudo chsh -s $(which zsh) $(whoami) && curl -s https://ohmyposh.dev/install.sh | sudo bash -s -- -d /usr/local/bin && echo \'eval "$(oh-my-posh init zsh)"\' >> .zshrc' 'zsh': 'sudo chsh -s $(which zsh) $(whoami) && curl -s https://ohmyposh.dev/install.sh | sudo bash -s -- -d /usr/local/bin && echo \'eval "$(oh-my-posh init zsh)"\' >> .zshrc'
} }
sh_packages = [
'curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash'
]
os_type = platform.uname().system.lower() os_type = platform.uname().system.lower()
is_linux = os_type == "linux" is_linux = os_type == "linux"
@@ -60,3 +64,4 @@ if __name__ == "__main__":
for p in rhel_packages: install(p) for p in rhel_packages: install(p)
if is_linux: if is_linux:
for p in linux_packages: install(p) for p in linux_packages: install(p)
for c in sh_packages: os.system(c)