Skip to content

Commit

Permalink
Update setup.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvmistry2000 committed Sep 19, 2024
1 parent db37eae commit 150f64d
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ checkEnv() {
done

## Check Package Handler
PACKAGEMANAGER='nala apt dnf yum pacman zypper emerge xbps-install nix-env'
PACKAGEMANAGER='apt dnf pacman'
for pgm in $PACKAGEMANAGER; do
if command_exists "$pgm"; then
PACKAGER="$pgm"
Expand Down Expand Up @@ -118,18 +118,10 @@ installDepend() {
exit 1
fi
${AUR_HELPER} --noconfirm -S ${DEPENDENCIES}
elif [ "$PACKAGER" = "nala" ]; then
${SUDO_CMD} ${PACKAGER} install -y ${DEPENDENCIES}
elif [ "$PACKAGER" = "emerge" ]; then
${SUDO_CMD} ${PACKAGER} -v app-shells/bash app-shells/bash-completion app-arch/tar app-editors/neovim sys-apps/bat app-text/tree app-text/multitail app-misc/fastfetch
elif [ "$PACKAGER" = "xbps-install" ]; then
${SUDO_CMD} ${PACKAGER} -v ${DEPENDENCIES}
elif [ "$PACKAGER" = "nix-env" ]; then
${SUDO_CMD} ${PACKAGER} -iA nixos.bash nixos.bash-completion nixos.gnutar nixos.neovim nixos.bat nixos.tree nixos.multitail nixos.fastfetch nixos.pkgs.starship
elif [[ "$PACKAGER" == "dnf" ]]; then
${SUDO_CMD} ${PACKAGER} install -y ${DEPENDENCIES}
else
${SUDO_CMD} ${PACKAGER} install -yq ${DEPENDENCIES}
${SUDO_CMD} ${PACKAGER} install -y ${DEPENDENCIES}
fi

# Check to see if the FiraCode Nerd Font is installed (Change this to whatever font you would like)
Expand Down Expand Up @@ -196,10 +188,6 @@ install_additional_dependencies() {
${SUDO_CMD} ln -s /opt/neovim/AppRun /usr/bin/nvim
fi
;;
*zypper)
${SUDO_CMD} zypper refresh
${SUDO_CMD} zypper -n install neovim # -y doesn't work on opensuse -n is short for -non-interactive which is equivalent to -y
;;
*dnf)
${SUDO_CMD} dnf check-update
${SUDO_CMD} dnf install -y neovim
Expand Down Expand Up @@ -345,4 +333,3 @@ if linkConfig; then
else
echo "${RED}Something went wrong!${RC}"
fi

0 comments on commit 150f64d

Please sign in to comment.