chore: 更新 zshrc 和 tmux 配置

- tmux 开启 focus-events 支持 shell integration (claude code, vim)
- cc alias 添加 --permission-mode auto 参数
This commit is contained in:
2026-05-08 15:24:19 +08:00
parent 03f79cda02
commit 93cc4e8d82
2 changed files with 3 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
# ==== Common ==== # ==== Common ====
set -g default-command /bin/zsh set -g default-command /bin/zsh
# enable focus events for shell integration (claude code, vim, etc.)
set -g focus-events on
# rebind PREFIX to C-a # rebind PREFIX to C-a
set-option -g prefix C-a set-option -g prefix C-a

2
.zshrc
View File

@@ -126,7 +126,7 @@ alias sed='gsed'
alias grep='ggrep' alias grep='ggrep'
alias tailscale="/Applications/Tailscale.app/Contents/MacOS/Tailscale" alias tailscale="/Applications/Tailscale.app/Contents/MacOS/Tailscale"
alias ghostty='/Applications/Ghostty.app/Contents/MacOS/ghostty' alias ghostty='/Applications/Ghostty.app/Contents/MacOS/ghostty'
alias cc='claude' alias cc='claude --permission-mode auto'
alias oc='opencode' alias oc='opencode'