@antonior/claude-code-setup 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/bin/install.js +31 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -101,6 +101,7 @@ alias claude="claude --dangerously-skip-permissions"
|
|
|
101
101
|
```sh
|
|
102
102
|
cr() {
|
|
103
103
|
local session="${1:-$(basename "$PWD")}"
|
|
104
|
+
session="${session//[.:]/_}" # tmux treats . and : as target separators
|
|
104
105
|
if tmux has-session -t "$session" 2>/dev/null; then
|
|
105
106
|
tmux attach-session -t "$session"
|
|
106
107
|
else
|
package/bin/install.js
CHANGED
|
@@ -172,9 +172,37 @@ function main() {
|
|
|
172
172
|
console.log(c.bold(c.green('\nDone. Restart Claude Code to apply.')));
|
|
173
173
|
console.log(c.dim('Overwrites are backed up to <file>.bak. Unmanaged files already in ~/.claude are left untouched.'));
|
|
174
174
|
if (!CONFIG_ONLY) {
|
|
175
|
-
|
|
176
|
-
console.log(
|
|
177
|
-
|
|
175
|
+
const bar = c.yellow('━'.repeat(64));
|
|
176
|
+
console.log(`
|
|
177
|
+
${bar}
|
|
178
|
+
${c.bold(c.yellow(' MANUAL STEPS: do these once on each machine'))}
|
|
179
|
+
${c.dim(' (a package can only write ~/.claude; your shell config and your')}
|
|
180
|
+
${c.dim(' account cannot ship, so set them up yourself)')}
|
|
181
|
+
${bar}
|
|
182
|
+
|
|
183
|
+
${c.bold('1) Shell setup')} — add to ${c.bold('~/.zshrc')}, then run: ${c.bold('source ~/.zshrc')}
|
|
184
|
+
|
|
185
|
+
${c.dim('# start Claude in bypass mode (skips permission prompts)')}
|
|
186
|
+
alias claude="claude --dangerously-skip-permissions"
|
|
187
|
+
|
|
188
|
+
${c.dim('# cr: open Claude in a tmux session named after the current dir')}
|
|
189
|
+
cr() {
|
|
190
|
+
local session="\${1:-$(basename "$PWD")}"
|
|
191
|
+
session="\${session//[.:]/_}" # tmux treats . and : as separators
|
|
192
|
+
if tmux has-session -t "$session" 2>/dev/null; then
|
|
193
|
+
tmux attach-session -t "$session"
|
|
194
|
+
else
|
|
195
|
+
tmux new-session -s "$session" -d -c "$PWD"
|
|
196
|
+
tmux send-keys -t "$session" "claude --dangerously-skip-permissions --remote-control '$session'" Enter
|
|
197
|
+
tmux attach-session -t "$session"
|
|
198
|
+
fi
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
${c.bold('2) Log into Claude Code')} (your account).
|
|
202
|
+
${c.bold('3) claude-video-vision API key')}: add your own if you use video analysis.
|
|
203
|
+
|
|
204
|
+
${bar}
|
|
205
|
+
`);
|
|
178
206
|
}
|
|
179
207
|
}
|
|
180
208
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antonior/claude-code-setup",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "Install Antonio's full Claude Code setup: hooks, slash commands, skills, statusline, settings, and MCP servers (transcript-search + video-vision)",
|
|
5
5
|
"bin": {
|
|
6
6
|
"claude-code-setup": "bin/install.js"
|