Split installpackages into root/nonroot
This commit is contained in:
parent
06f05cb7ed
commit
2571cf92b9
|
@ -1,13 +1,13 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Install packages for a new Arch or Manjaro installation. Requires sudo
|
# install packages for a new arch or manjaro installation. requires sudo
|
||||||
|
|
||||||
if [[ $EUID > 0 ]]; then
|
if [[ $euid > 0 ]]; then
|
||||||
echo "requires administrative privileges"
|
echo "requires administrative privileges"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pacman -S --needed --noconfirm base-devel \
|
pacman -s --needed --noconfirm base-devel \
|
||||||
git \
|
git \
|
||||||
exa \
|
exa \
|
||||||
fzf \
|
fzf \
|
||||||
|
@ -16,11 +16,6 @@ pacman -S --needed --noconfirm base-devel \
|
||||||
bat \
|
bat \
|
||||||
docker \
|
docker \
|
||||||
docker-compose \
|
docker-compose \
|
||||||
ttf-ubuntu-font-family # Ubuntu Mono font for Alacritty
|
ttf-ubuntu-font-family # ubuntu mono font for alacritty
|
||||||
|
|
||||||
# https://rustup.rs/
|
sudo -u $SUDO_USER ./script/installpackagesnonroot
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
|
||||||
source $HOME/.cargo/env
|
|
||||||
|
|
||||||
# https://github.com/dandavison/delta#installation
|
|
||||||
cargo install git-delta
|
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
#
|
||||||
|
# install nonsudo packages
|
||||||
|
|
||||||
|
# https://rustup.rs/
|
||||||
|
curl --proto '=https' --tlsv1.2 -ssf https://sh.rustup.rs | sh -s -- -y
|
||||||
|
|
||||||
|
# https://github.com/dandavison/delta#installation
|
||||||
|
cargo install git-delta
|
Loading…
Reference in New Issue