Move long commands from dotbot config into scripts
Move long commands from the dotbot config into own scripts to keep the install.conf.yaml more readable. Fix bug that the submodule init step fails when already done once since then the grep statement fails because there is no output.
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
- shell:
|
||||
-
|
||||
command: git submodule update --init --recursive --jobs 8 --depth 1 2>&1 | grep "Cloning into"
|
||||
command: meta/submodules --init
|
||||
description: Pulling all submodules
|
||||
stdout: true
|
||||
stderr: true
|
||||
-
|
||||
command: /bin/sh -c 'tmpd="$(mktemp -d)"; for file in .config/*; do [ ! -e "$HOME/$file" ] || mv "$HOME/$file" "$tmpd"; done; rmdir "$tmpd" 2>/dev/null && echo "Nothing to archive" || { name="existing-$(date +"%s").tar.gz"; tar czvf "$name" "$tmpd" && rm -rf "$tmpd" && echo "$name created"; }'
|
||||
command: meta/archive
|
||||
description: Archiving all files in ~/.config before overwriting them
|
||||
stdout: true
|
||||
stderr: true
|
||||
quiet: true
|
||||
-
|
||||
command: .config/zsh/plugins/fzf/install --bin
|
||||
description: Pulling fzf binary
|
||||
|
||||
Reference in New Issue
Block a user