diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2021-12-23 18:28:03 +0000 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2021-12-23 18:28:03 +0000 |
commit | 0f08d04698c814955116b6bae50752e64b774d8f (patch) | |
tree | 8cf9a33557093eebfd25aab2872e97639c7e2f62 /.bin/dot-bootstrap | |
download | dots-0f08d04698c814955116b6bae50752e64b774d8f.tar.gz |
Thu Dec 23 06:28:03 PM UTC 2021
Diffstat (limited to '.bin/dot-bootstrap')
-rwxr-xr-x | .bin/dot-bootstrap | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.bin/dot-bootstrap b/.bin/dot-bootstrap new file mode 100755 index 0000000..56840dc --- /dev/null +++ b/.bin/dot-bootstrap @@ -0,0 +1,17 @@ +#!/bin/sh + +set -x -e + +directories="git \ + downloads \ + .cache/dot \ + .cache/neomutt \ + .local/bin \ + .local/share/dot" + +remote=$(yadm remote | head -n 1) +yadm branch --set-upstream-to="${remote}/trunk" trunk + +for directory in ${directories}; do + [ ! -d "${HOME}/${directory}" ] && mkdir -p "${HOME}/${directory}" +done |