aboutsummaryrefslogtreecommitdiffhomepage
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
parent8165a00c829aeea737681412359309cc29ac93e7 (diff)
downloaddotfiles-0da55d9886f4959d78cdf0ee6235808d25dc2ed0.tar.gz
dotfiles-0da55d9886f4959d78cdf0ee6235808d25dc2ed0.tar.zst
dotfiles-0da55d9886f4959d78cdf0ee6235808d25dc2ed0.zip
bootstrap: move some code from setup.sh
-rwxr-xr-xbootstrap.sh15
-rwxr-xr-xsetup.sh17
2 files changed, 15 insertions, 17 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
diff --git a/setup.sh b/setup.sh
index bafa2f8..f576c29 100755
--- a/setup.sh
+++ b/setup.sh
@@ -21,23 +21,6 @@ if [[ $ok = 0 ]]; then
exit 1
fi
-# XDG Base Directories. {{{1
-(
- source ~/dotfiles/.zshenv
- for dir in \
- "$XDG_CONFIG_HOME" \
- "$XDG_CACHE_HOME" \
- "$XDG_DATA_HOME" \
- "$XDG_STATE_HOME" \
- ; \
- do
- if [ ! -d "$dir" ]; then
- echo "dir: $dir"
- mkdir -p "$dir"
- fi
- done
-)
-
# Configurations. {{{1
# Make symlinks to dot files. {{{2