-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path1c_run_wsl.bash
More file actions
executable file
·58 lines (43 loc) · 1.6 KB
/
Copy path1c_run_wsl.bash
File metadata and controls
executable file
·58 lines (43 loc) · 1.6 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash -eu
# Copyright 2025 Shunsuke Kimura
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# WSL2 用セットアップ(最小、CLI 中心)
# GUI 関連は含めない。SSH 鍵を Windows 側にコピーするステップを含む
# 全項目を対話選択 (ASSUME_YES=1 で全 default 採用)
cd `dirname $0`
source ./software/_prompt_lib.bash
echo
echo "=== セットアップ項目選択 (Enter でデフォルト) ==="
# Preference
ask_step 2a-common ./2a_preference_common.bash y "vim/.bashrc/xdg ホーム英語化"
# Software
ask_pkg uv y "Python パッケージマネージャ"
ask_pkg gh y "GitHub CLI"
ask_pkg claude-code y
ask_pkg nodejs y "Node.js LTS (via nvm)"
ask_pkg codex y "OpenAI Codex CLI"
ask_pkg docker y
ask_pkg tmux y
confirm_or_abort
sudo apt update
if run_all; then
setup_status=ok
else
setup_status=fail
fi
# Copy SSH key to Windows side
./6_copy_ssh_to_windows.bash
if [ "$setup_status" = "ok" ]; then
echo -e "\033[32mWSL setup is complete!\033[m"
else
echo -e "\033[33mWSL setup finished with some failures. See above.\033[m"
exit 1
fi