-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·35 lines (24 loc) · 837 Bytes
/
setup.sh
File metadata and controls
executable file
·35 lines (24 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
# Dotfiles setup script
# Usage: ./setup.sh
# sh で実行された場合は bash で再実行する
if [ -z "${BASH_VERSION:-}" ]; then
exec bash "$0" "$@"
fi
set -euo pipefail
REPO_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
echo "==> Installing packages..."
"$REPO_DIR/install/ubuntu/packages.sh"
echo "==> Installing Docker..."
"$REPO_DIR/install/ubuntu/docker.sh"
echo "==> Installing CA certificate..."
"$REPO_DIR/install/common/ca-certs.sh"
echo "==> Installing Nix..."
"$REPO_DIR/install/common/nix.sh"
echo "==> Applying home-manager configuration..."
"$REPO_DIR/install/common/home-manager.sh"
echo "==> Configuring login shell (zsh)..."
"$REPO_DIR/install/common/chsh-zsh.sh"
echo "==> Enabling repo-local git hooks..."
"$REPO_DIR/install/common/setup-local-hooks.sh"
echo "Setup complete."