Hi there 👋

记录技术、思考与日常

Mac 增强 Caps 键功能

安装 Karabiner-Elements 和 Capslock https://karabiner-elements.pqrs.org https://github.com/Vonng/Capslock 设置单击 Caps 切换输入法 打开配置文件 ~/.config/karabiner/karabiner.json 找到 “description": “capslock = esc(click) | hyper(hold)” 改 to_if_alone 值(to_if_alone 表示短按,to 表示长按): 保持原功能 在 Bob 和某些软件的输入框切换不了输入法 有时候随机变成大写锁定 { "to_if_alone": [ { "key_code": "caps_lock" } ] } 映射到切换输入法的快捷键 切换有点延迟 有时候切换不到,比如某些情况下每次点击都间隔一秒就会 { "to_if_alone": [ { "key_code": "spacebar", "modifiers": ["left_control"] } ] } Windows Capslock+

August 1, 2025 · 1 min

Mac 和 Linux 安装 oh-my-zsh

安装 zsh # 查看系统所有 shell chsh -l # 如果没有 chsh 命令 cat /etc/shells # 如果没有 zsh 则安装 ## Ubuntu sudo apt install zsh -y ## Centos sudo yum install zsh -y ## Mac brew install zsh # 设置默认 shell 为 zsh chsh -s /bin/zsh # 如果没有 chsh 命令,找到要改 shell 的行 vi /etc/passwd # 如果没有 chsh 命令,编辑 .bash_profile,在末尾添加 export SHELL=/bin/zsh exec /bin/zsh -l # 新开一个终端确认是否完成切换 echo $SHELL 安装 oh-my-zsh 官网:https://ohmyz.sh ...

June 19, 2025 · 1 min

我的 MacBook 常用软件和设置

App Store Bob - 翻译和 OCR 工具 WPS Office 滴答清单 - 安装后要移除滴答清单设置里的全局快捷键设置 腾讯会议 网易云音乐 非 App Store Capslock - Caps 键功能增强 Chrome Docker Desktop JetBrains Toolbox Navicat Premium Lite - 数据库管理 OneDrive PixPin - 截图、贴图和录屏 Raycast - 启动器 Tencent Lemon - 系统清理 Tiny RDM - Redis GUI Visual Studio Code 微信 微信输入法 Homebrew https://brew.sh/ brew tap buo/cask-upgrade brew install --cask apifox brew install --cask claude-code # 管理 Node.js 版本 brew install fnm brew install font-jetbrains-mono # Git brew install git git-lfs git-flow # 统一行尾符为 LF git config --global core.autocrlf input git config --global core.eol lf # 显示原始文件名 git config --global core.quotepath off # 区分大小写 git config --global core.ignorecase false # 设置用户信息 git config --global user.name {username} git config --global user.email {email} git config --global credential.github.com.provider {username} # 忽略文件权限变化 git config --global core.fileMode false # Go brew install go # 添加以下内容到 ~/.zshrc export PATH="/Users/wangze/go/bin:$PATH" export GO111MODULE=on export GOPROXY=https://goproxy.cn # 媒体播放器 brew install --cask iina # 管理 Java,sdk help curl -s "https://get.sdkman.io" | bash # 录屏 brew install --cask kap # The macOS file archiver brew install --cask keka # 增强鼠标功能 brew install --cask mac-mouse-fix # 支付宝小程序开发者工具 brew install --cask mini-program-studio # 系统清理 brew install mole # PHP brew install php brew install composer brew install php@8.2 brew install shivammathur/php/php@7.4 brew install shivammathur/php/php@7.3 # 切换 PHP 版本 brew unlink php brew unlink php@8.2 brew link --force --overwrite php@8.2 # 图床 brew install --cask picgo # Rust # 解决安装和更新慢:https://rsproxy.cn/#getStarted curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh rustc -V && cargo -V # Git GUI brew install --cask sourcetree brew install --cask switchhosts # 微信开发者工具 brew install --cask wechatwebdevtools 系统设置 打开 ...

June 19, 2025 · 3 min