diff --git a/install.sh b/install.sh index 42a2628..03108ed 100644 --- a/install.sh +++ b/install.sh @@ -11,4 +11,4 @@ else git clone https://github.com/dev-satoshi/dotfiles "$INSTALL_DIR" fi -sh "$INSTALL_DIR/scripts/setup.sh" +sh "$INSTALL_DIR/scripts/setup/setup.sh" diff --git a/scripts/setup.sh b/scripts/setup.sh deleted file mode 100644 index 9c1f602..0000000 --- a/scripts/setup.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env zsh -set -euo pipefail - -echo "「dotfiles」のセットアップを開始しました" - -INSTALL_DIR="$HOME/dotfiles" - -sh "$INSTALL_DIR/scripts/link_dotfiles.sh" -sh "$INSTALL_DIR/scripts/homebrew_setup.sh" -sh "$INSTALL_DIR/scripts/asdf_setup.sh" -sh "$INSTALL_DIR/scripts/vscode_setup.sh" -sh "$INSTALL_DIR/scripts/xcode_setup.sh" -sh "$INSTALL_DIR/scripts/android_setup.sh" - -echo "「dotfiles」のセットアップが完了しました" diff --git a/scripts/android_setup.sh b/scripts/setup/android_setup.sh similarity index 100% rename from scripts/android_setup.sh rename to scripts/setup/android_setup.sh diff --git a/scripts/asdf_setup.sh b/scripts/setup/asdf_setup.sh similarity index 100% rename from scripts/asdf_setup.sh rename to scripts/setup/asdf_setup.sh diff --git a/scripts/homebrew_setup.sh b/scripts/setup/homebrew_setup.sh similarity index 100% rename from scripts/homebrew_setup.sh rename to scripts/setup/homebrew_setup.sh diff --git a/scripts/link_dotfiles.sh b/scripts/setup/link_dotfiles.sh similarity index 100% rename from scripts/link_dotfiles.sh rename to scripts/setup/link_dotfiles.sh diff --git a/scripts/setup/setup.sh b/scripts/setup/setup.sh new file mode 100644 index 0000000..1276516 --- /dev/null +++ b/scripts/setup/setup.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env zsh +set -euo pipefail + +echo "「dotfiles」のセットアップを開始しました" + +INSTALL_DIR="$HOME/dotfiles" + +sh "$INSTALL_DIR/scripts/setup/link_dotfiles.sh" +sh "$INSTALL_DIR/scripts/setup/homebrew_setup.sh" +sh "$INSTALL_DIR/scripts/setup/asdf_setup.sh" +sh "$INSTALL_DIR/scripts/setup/vscode_setup.sh" +sh "$INSTALL_DIR/scripts/setup/xcode_setup.sh" +sh "$INSTALL_DIR/scripts/setup/android_setup.sh" + +echo "「dotfiles」のセットアップが完了しました" diff --git a/scripts/vscode_setup.sh b/scripts/setup/vscode_setup.sh similarity index 100% rename from scripts/vscode_setup.sh rename to scripts/setup/vscode_setup.sh diff --git a/scripts/xcode_setup.sh b/scripts/setup/xcode_setup.sh similarity index 100% rename from scripts/xcode_setup.sh rename to scripts/setup/xcode_setup.sh