From f98d95f842529a497140e8713694e7001fc57059 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sat, 2 Mar 2024 20:49:25 +0100 Subject: add system config files to yadm --- .config/yadm/bootstrap | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to '.config/yadm/bootstrap') diff --git a/.config/yadm/bootstrap b/.config/yadm/bootstrap index 12282d6..97c6a13 100755 --- a/.config/yadm/bootstrap +++ b/.config/yadm/bootstrap @@ -1,19 +1,7 @@ #!/bin/sh -TIMESTART="$(date +%s)" +cd "$(dirname "$0")" . "$HOME/.profile" -unset LANG # do not display custom locale in TTY - -begintask() { - printf '%s ...' "$1" -} -endtask() { - EXIT_CODE=$? - [ $EXIT_CODE -eq 0 ] && echo ' OK' || echo ' ERROR' - return $EXIT_CODE -} -s() { # s for silent - "$@" 1> /dev/null 2> /dev/null -} +. ./lib/bootstrap # ensure required packages are installed begintask "installing packages" @@ -67,15 +55,15 @@ endtask endtask ) -TIMESTOP="$(date +%s)" cat << EOF -bootstrap finished in $(( $TIMESTOP - $TIMESTART ))s! +bootstrap finished in $(finishtime)! follow-up steps to finish setup: - install GPG keys - install nonfree fonts - clone the pass repository in ~/.local/share/pass + - run the system bootstrap script in ~/.config/yadm/root/bootstrap - make the switch to microsoft edge EOF -- cgit v1.2.3