aboutsummaryrefslogtreecommitdiff
path: root/.config/yadm/bootstrap
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-03-02 20:49:25 +0100
committerlonkaars <loek@pipeframe.xyz>2024-03-02 20:49:25 +0100
commitf98d95f842529a497140e8713694e7001fc57059 (patch)
treedf2dcc0105d26ff4840a31fbd6b576a88c6c6054 /.config/yadm/bootstrap
parent9cd50d0dbdc9386d80701d668fe645ee80abbeae (diff)
add system config files to yadm
Diffstat (limited to '.config/yadm/bootstrap')
-rwxr-xr-x.config/yadm/bootstrap20
1 files changed, 4 insertions, 16 deletions
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