Command mapping
Script path:~/.claude/skills/wechat-multi/scripts/wechat-multi.sh(hereinafter referred to as SCRIPT)
First use
Requires sudo permission. It is recommended to configure passwordless sudoers, otherwise a password prompt will pop up each time:
echo "$(whoami) ALL=(ALL) NOPASSWD: $(which bash) $(ls ~/.claude/skills/wechat-multi/scripts/wechat-multi.sh)" | sudo tee /etc/sudoers.d/wechat-multi
Command mapping
| User says | Execute command |
|---|---|
| "Open two WeChats" / "WeChat dual instance" | sudo $SCRIPT auto --force |
| "Open N WeChats" / "WeChat multi-instance N" | sudo $SCRIPT multi N --force |
| "Open another WeChat" | open -n /Applications/小绿书.app |
| "Rebuild after WeChat update" / "Repair WeChat multi-instance" | sudo $SCRIPT rebuild --force |
| "Close all WeChats" | sudo $SCRIPT kill |
Notes
- After a WeChat update, the copy will become invalid; run
rebuildto rebuild - The copy name is
小绿书.app(dual instance) or小绿书1.app、小绿书2.app... (multi-instance) - If a signature error is prompted, also use
rebuildto repair