mirror of
https://github.com/ChrisTitusTech/mybash.git
synced 2026-04-03 11:08:28 +00:00
finish conversion
This commit is contained in:
12
setup.sh
12
setup.sh
@@ -25,7 +25,6 @@ if [ ! -d "$LINUXTOOLBOXDIR/mybash" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
cd "$LINUXTOOLBOXDIR/mybash" || exit
|
||||
|
||||
command_exists() {
|
||||
@@ -117,13 +116,13 @@ installDepend() {
|
||||
exit 1
|
||||
fi
|
||||
${AUR_HELPER} --noconfirm -S ${DEPENDENCIES}
|
||||
elif [[ $PACKAGER == "nala" ]]; then
|
||||
elif [ "$PACKAGER" = "nala" ]; then
|
||||
${SUDO_CMD} ${PACKAGER} install -y ${DEPENDENCIES}
|
||||
elif [[ $PACKAGER == "emerge" ]]; then
|
||||
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
|
||||
elif [ "$PACKAGER" = "xbps-install" ]; then
|
||||
${SUDO_CMD} ${PACKAGER} -v ${DEPENDENCIES}
|
||||
elif [[ $PACKAGER == "nix-env" ]]; then
|
||||
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
|
||||
else
|
||||
${SUDO_CMD} ${PACKAGER} install -yq ${DEPENDENCIES}
|
||||
@@ -226,5 +225,4 @@ if linkConfig; then
|
||||
echo "${GREEN}Done!\nrestart your shell to see the changes.${RC}"
|
||||
else
|
||||
echo "${RED}Something went wrong!${RC}"
|
||||
fi
|
||||
|
||||
fi
|
||||
Reference in New Issue
Block a user