refactor code and install rustup via arch's own repo
This commit is contained in:
parent
8f8854c994
commit
dfe65ea2c0
|
@ -40,7 +40,7 @@ PKGS_TO_INSTALL+=(hd-idle hdparm tldr smartmontools wol)
|
||||||
PKGS_TO_INSTALL+=(tar unrar unzip xz zip)
|
PKGS_TO_INSTALL+=(tar unrar unzip xz zip)
|
||||||
|
|
||||||
# software devel
|
# software devel
|
||||||
|
PKGS_TO_INSTALL+=(rustup)
|
||||||
|
|
||||||
# kernel devel
|
# kernel devel
|
||||||
PKGS_TO_INSTALL+=(base-devel bc cpio gcc git inetutils kmod libelf linux-headers make perl tar xmlto xz)
|
PKGS_TO_INSTALL+=(base-devel bc cpio gcc git inetutils kmod libelf linux-headers make perl tar xmlto xz)
|
||||||
|
|
|
@ -23,22 +23,10 @@ if [[ $WHAT_IS_MY_TZ == "whoopsie" || $WHAT_IS_MY_HOSTNAME == "whoopsie" ]]; the
|
||||||
systemctl reboot
|
systemctl reboot
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# SETUP DEV ENVIRONMENT
|
# SSH KEYS
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
# rust-lang
|
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
|
||||||
rustup default stable
|
|
||||||
rustup component add rust-src rust-analyzer
|
|
||||||
rustup component add rust-analysis
|
|
||||||
cargo install cargo-outdated cargo-tree
|
|
||||||
|
|
||||||
|
|
||||||
# neovim (vim-plug)
|
|
||||||
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
|
||||||
|
|
||||||
# create ssh keys
|
# create ssh keys
|
||||||
if [[ ! -d $HOME/.ssh ]]; then
|
if [[ ! -d $HOME/.ssh ]]; then
|
||||||
mkdir $HOME/.ssh
|
mkdir $HOME/.ssh
|
||||||
|
@ -66,6 +54,23 @@ cat $HOME/.ssh/gitea.pub
|
||||||
echo "Populate Hostname (IP addr) for \"git.thefossguy.com\" in ~/.ssh/config"
|
echo "Populate Hostname (IP addr) for \"git.thefossguy.com\" in ~/.ssh/config"
|
||||||
bash
|
bash
|
||||||
|
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# SETUP DEV ENVIRONMENT
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
# rust-lang
|
||||||
|
#curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh (removed because paru has a hard dependency on Arch's cargo; this is handled by the `rustup` package)
|
||||||
|
rustup default stable
|
||||||
|
rustup component add rust-src rust-analyzer
|
||||||
|
rustup component add rust-analysis
|
||||||
|
cargo install cargo-outdated cargo-tree
|
||||||
|
|
||||||
|
|
||||||
|
# neovim (vim-plug)
|
||||||
|
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
||||||
|
|
||||||
|
|
||||||
# get dotfiles
|
# get dotfiles
|
||||||
echo -ne "\n\n\n\n"
|
echo -ne "\n\n\n\n"
|
||||||
|
|
||||||
|
@ -97,13 +102,14 @@ rsync \
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
# install necessary packages for installing \`paru\`
|
# install necessary packages for installing \`paru\`
|
||||||
doas pacman -S --needed base-devel
|
doas pacman --sync --refresh --needed base-devel
|
||||||
|
|
||||||
# build paru
|
# build paru
|
||||||
mkdir /tmp/parutemp-PARU
|
mkdir /tmp/parutemp-PARU
|
||||||
pushd /temp/parutemp-PARU
|
pushd /temp/parutemp-PARU
|
||||||
|
|
||||||
git clone --depth 1 https://aur.archlinux.org/paru.git
|
git clone --depth 1 https://aur.archlinux.org/paru.git
|
||||||
|
pushd paru
|
||||||
makepkg -si
|
makepkg -si
|
||||||
if [[ $? -ne 0 ]]; then
|
if [[ $? -ne 0 ]]; then
|
||||||
tput -x clear
|
tput -x clear
|
||||||
|
@ -111,6 +117,7 @@ if [[ $? -ne 0 ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
popd
|
popd
|
||||||
|
popd
|
||||||
|
|
||||||
# AUR pkgs
|
# AUR pkgs
|
||||||
paru -S qomui noisetorch ssmtp
|
paru -S qomui noisetorch ssmtp
|
||||||
|
|
Loading…
Reference in New Issue