aboutsummaryrefslogtreecommitdiffhomepage
path: root/bootstrap.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-xbootstrap.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index 94cb202..72b078d 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -7,6 +7,21 @@ if [ $# != 1 ]; then
exit 1
fi
+(
+ source .zshenv
+ for dir in \
+ "$XDG_CONFIG_HOME" \
+ "$XDG_CACHE_HOME" \
+ "$XDG_DATA_HOME" \
+ "$XDG_STATE_HOME" \
+ ; \
+ do
+ if [ ! -d "$dir" ]; then
+ mkdir -p "$dir"
+ fi
+ done
+)
+
if [ ! -d .bootstrap ]; then
mkdir .bootstrap
fi