aboutsummaryrefslogtreecommitdiffhomepage
path: root/bootstrap.sh
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2023-09-04 20:54:32 +0900
committernsfisis <nsfisis@gmail.com>2023-09-04 20:54:32 +0900
commit0da55d9886f4959d78cdf0ee6235808d25dc2ed0 (patch)
tree806fb3bef27c20f47f697c5ac60bb64c045bef69 /bootstrap.sh
parent8165a00c829aeea737681412359309cc29ac93e7 (diff)
downloaddotfiles-0da55d9886f4959d78cdf0ee6235808d25dc2ed0.tar.gz
dotfiles-0da55d9886f4959d78cdf0ee6235808d25dc2ed0.tar.zst
dotfiles-0da55d9886f4959d78cdf0ee6235808d25dc2ed0.zip
bootstrap: move some code from setup.sh
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