From 3e62e15c35d8844eb6ab83b24cd754ac9885aca6 Mon Sep 17 00:00:00 2001 From: Paul Wilde Date: Tue, 30 Aug 2022 11:15:32 +0100 Subject: [PATCH] added package management --- zsh_install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zsh_install.sh b/zsh_install.sh index 70133b2..8f4b8b0 100644 --- a/zsh_install.sh +++ b/zsh_install.sh @@ -1,5 +1,11 @@ #!/bin/bash +if [ -f /etc/rocky-release ]; then + sudo dnf install zsh git curl +elif [ -f /etc/arch-release ]; then + sudo pacman -S zsh git curl +fi + sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" sed -i 's/ZSH_THEME=.*/ZSH_THEME="bureau"/' ~/.zshrc