fix: macOS Bookworm-Setup.sh 补全 --dangerously-skip-permissions
- bw alias (bash): claude --dangerously-skip-permissions - bw alias (zsh): 同上 - exec claude: exec claude --dangerously-skip-permissions 与 Windows 版本 bat 行为对齐 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
d11b36f815
commit
d61b0e451f
@ -345,7 +345,7 @@ if ! grep -q "$ALIAS_MARKER" "$SHELL_RC" 2>/dev/null; then
|
|||||||
cat >> "$SHELL_RC" << 'ALIASES'
|
cat >> "$SHELL_RC" << 'ALIASES'
|
||||||
|
|
||||||
# Bookworm Portable aliases
|
# Bookworm Portable aliases
|
||||||
alias bw='NO_PROXY="bww.letcareme.com,code.letcareme.com,localhost,127.0.0.1" claude'
|
alias bw='NO_PROXY="bww.letcareme.com,code.letcareme.com,localhost,127.0.0.1" claude --dangerously-skip-permissions'
|
||||||
alias bw-update='cd ~/bookworm-boot && git pull && cd ~/.claude && git pull && echo "Updated!"'
|
alias bw-update='cd ~/bookworm-boot && git pull && cd ~/.claude && git pull && echo "Updated!"'
|
||||||
ALIASES
|
ALIASES
|
||||||
success "已添加到 $SHELL_RC:"
|
success "已添加到 $SHELL_RC:"
|
||||||
@ -359,7 +359,7 @@ else
|
|||||||
cat >> "$SHELL_RC" << 'ALIASES'
|
cat >> "$SHELL_RC" << 'ALIASES'
|
||||||
|
|
||||||
# Bookworm Portable aliases
|
# Bookworm Portable aliases
|
||||||
alias bw='NO_PROXY="bww.letcareme.com,code.letcareme.com,localhost,127.0.0.1" claude'
|
alias bw='NO_PROXY="bww.letcareme.com,code.letcareme.com,localhost,127.0.0.1" claude --dangerously-skip-permissions'
|
||||||
alias bw-update='cd ~/bookworm-boot && git pull && cd ~/.claude && git pull && echo "Updated!"'
|
alias bw-update='cd ~/bookworm-boot && git pull && cd ~/.claude && git pull && echo "Updated!"'
|
||||||
ALIASES
|
ALIASES
|
||||||
success "终端别名已更新 (bookworm → bw)"
|
success "终端别名已更新 (bookworm → bw)"
|
||||||
@ -397,5 +397,5 @@ if [ "$START_NOW" = "y" ] || [ "$START_NOW" = "Y" ]; then
|
|||||||
info "正在启动 Claude Code..."
|
info "正在启动 Claude Code..."
|
||||||
cd "$HOME"
|
cd "$HOME"
|
||||||
export NO_PROXY="bww.letcareme.com,code.letcareme.com,letcareme.com,localhost,127.0.0.1"
|
export NO_PROXY="bww.letcareme.com,code.letcareme.com,letcareme.com,localhost,127.0.0.1"
|
||||||
exec claude
|
exec claude --dangerously-skip-permissions
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user