200920.7 · 74918abb95b362832045d2cf79861e5417c8316b
bin: more updates to install process
Something always goes wrong, but we just keep iterating.
Thankfully, it looks like my laptop is back to working!
reading declarations
@@ -108,8 +108,6 @@ pkgs() { aws-cli s3cmd colordiff curl wget ctags darkhttpd pass rsync \ nodejs yarn pkgfile --update- rustup toolchain install stable- rustup default stable } xpkgs() {@@ -217,10 +215,14 @@ yayxpkgs() { homeinit() { cd "$HOME" || exit 1++ rustup toolchain install stable+ rustup default stable+ curl https://burntsushi.net/stuff/setup-home > /tmp/setup-home.sh sh /tmp/setup-home.sh git clone andrew@home.burntsushi.net:/m/git/password-store .password-store- (cd .password-store && configure-git)+ (cd .password-store && "$HOME/bin/configure-git") mkdir -p .gnupg {
@@ -35,6 +35,9 @@ export PATH="$HOME/bin:$PATH" # Configure $HOME and $HOME/bin git checkouts. (cd "$HOME" && configure-git) +# Build utilities.+setup-utilities+ # Install ripgrep if ! cmd-exists rg; then CARGO_BIN="$HOME/.local/cargo/bin"@@ -61,11 +64,3 @@ if cmd-exists apt; then fi done fi--# install ~/bin programs that need to be compiled-if cmd-exists cargo; then- for d in "$HOME/bin/rust/"*/; do- echo "===== compiling and installing $(basename "$d")"- cargo install --force --path "$d"- done-fi
@@ -0,0 +1,9 @@+#!/bin/sh++# This script builds all ~/bin utilities that require compilation.+if cmd-exists cargo; then+ for d in "$HOME/bin/rust/"*/; do+ echo "===== compiling and installing $(basename "$d")"+ cargo +stable install --force --path "$d"+ done+fi