-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsetup-mount-points.sh
More file actions
executable file
·126 lines (103 loc) · 2.18 KB
/
Copy pathsetup-mount-points.sh
File metadata and controls
executable file
·126 lines (103 loc) · 2.18 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#!/bin/sh
# Creates every file/dir that docker-compose.yml bind-mounts, so docker does not
# turn missing files into directories. Existing files are never overwritten.
set -eu
# bash
touch ~/.bash_docker
touch ~/.bash_history
# zsh
touch ~/.zsh_docker
touch ~/.zsh_history
# git
touch ~/.gitconfig
touch ~/.gitignore
# ssh
mkdir -p ~/.ssh
touch ~/.ssh/github.pub
# npm
touch ~/.npmrc
# claude
if [ ! -f ~/.claude.json ]; then
cat > ~/.claude.json <<'EOF'
{}
EOF
fi
mkdir -p ~/.claude
if [ ! -f ~/.claude/.credentials.json ]; then
cat > ~/.claude/.credentials.json <<'EOF'
{}
EOF
fi
if [ ! -f ~/.claude/settings.json ]; then
cat > ~/.claude/settings.json <<'EOF'
{
"fileCheckpointingEnabled": false,
"permissions": {
"defaultMode": "bypassPermissions"
},
"skipDangerousModePermissionPrompt": true,
"spinnerTipsEnabled": false,
"switchModelsOnFlag": false,
"theme": "auto"
}
EOF
fi
chmod 600 \
~/.claude/.credentials.json \
~/.claude/settings.json
# codex
mkdir -p ~/.codex
if [ ! -f ~/.codex/auth.json ]; then
cat > ~/.codex/auth.json <<'EOF'
{}
EOF
fi
if [ ! -f ~/.codex/config.toml ]; then
cat > ~/.codex/config.toml <<'EOF'
approval_policy = "never"
sandbox_mode = "danger-full-access"
[notice]
hide_full_access_warning = true
EOF
fi
chmod 600 \
~/.codex/auth.json \
~/.codex/config.toml
# opencode
mkdir -p ~/.config/opencode ~/.local/share/opencode
if [ ! -f ~/.config/opencode/opencode.jsonc ]; then
cat > ~/.config/opencode/opencode.jsonc <<'EOF'
{
"$schema": "https://opencode.ai/config.json",
"permission": {
"*": "allow"
}
}
EOF
fi
if [ ! -f ~/.config/opencode/tui.json ]; then
cat > ~/.config/opencode/tui.json <<'EOF'
{
"$schema": "https://opencode.ai/tui.json",
"theme": "system",
"tips": false
}
EOF
fi
if [ ! -f ~/.local/share/opencode/auth.json ]; then
cat > ~/.local/share/opencode/auth.json <<'EOF'
{}
EOF
fi
chmod 600 \
~/.config/opencode/opencode.jsonc \
~/.config/opencode/tui.json \
~/.local/share/opencode/auth.json
# pi
mkdir -p ~/.pi/agent
if [ ! -f ~/.pi/agent/auth.json ]; then
cat > ~/.pi/agent/auth.json <<'EOF'
{}
EOF
fi
chmod 600 ~/.pi/agent/auth.json