基调和实操

updated on 2026-10-25

基调

一,尽量不要对 app 做太多个性化的更改,开箱即用是最好的;如果复杂到需要单独导入设置备份,那么就单独拎出来提一嘴。

二,尽量用 brew install --cask

实操

1. Homebrew

安装 homebrew. /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

2. brew install

新建一个脚本文件 brew_setup.sh

#!/usr/bin/env bash
set -e  # exit on error

# Update brew first
brew update && brew upgrade

# tools
cli_tools=(
  autocorrect bat btop chezmoi emacs-plus eza fastfetch fish fx fzf gh git
  hugo jq lazygit llmfit
  neovim procs tmux uv wget yazi you-get zoxide
)

# apps
cask_apps=(
  1password 1password-cli ghostty applite
  anki claude claude-code iina keka obsidian maccy
  lm-studio loop omniwm pearcleaner shottr skim squirrel-app steam
  positron telegram thaw zen
)

# tap repo(s)
brew install tw93/tap/mole
brew tap d12frosted/emacs-plus
brew install djetelina/tap/cheznav
brew install --cask abue-ammar/tinycast/tinycast
brew install --cask stablyai/orca/orca

# install
brew install "${cli_tools[@]}"
brew install --cask "${cask_apps[@]}"

运行以上脚本文件安装。

chmod +x brew_setup.sh
./brew_setup.sh

3. App Store install

从 Mac App Store 里安装 things 3, ia writer, drafts, xcode. 另外还有以下 safari 插件:sink it for reddit, ublock origin lite, dark reader, keepa, untrap.

4. fish, fisher, tide

fish 设置成默认 shell.

# 确认 fish 位置
which fish
# 应该是 /opt/homebrew/bin/fish
# 路径添加到允许的 shell 列表
echo /opt/homebrew/bin/fish | sudo tee -a /etc/shells
# 改为默认 shell
chsh -s /opt/homebrew/bin/fish
# 重开 terminal 确认
echo $SHELL
# One more thing
fish_add_path /opt/homebrew/bin
# 打开在浏览器中设置
fish_config

在 config.fish 文件中添加:

Add the following lines to ~/.config/fish/config.fish

zoxide init fish | source

# aliases
alias pip=pip3
alias python=python3

# eza file listing
if type -q eza
    alias ll "eza -l -g --icons"
    alias lla "ll -a"
end

然后安装 fisher, a plugin manager for fish. 以及以下 plugins:

ilancosman/tide
jorgebucaran/autopair.fish

5. App-specific setup

单独的 app 设置。主要 1password.

6. Git

配置 git. 用 1password 里的 ssh-agent 生成并添加 ssh key 给 github 账号。另外可以创建一个全局的 gitignore 文件。git config --global core.excludesfile ~/.gitignore_global

7. Safari (or not)

safari - preferences - advanced, 打开 show develop menu in menu bar.

8. Timemachine destination

根据 synology 的操作步骤在 NAS 里单独创建一个 time machine 备份。

9. Some keyboard shortcuts

修改以下的 keyboard shortcuts:

  • system settings - keyboard - keyboard shortcuts
    • input sources - select next source in input menu: shift + command + space
    • screenshots: turn them off
    • spotlight - show spotlight search: option + space
  • shottr
    • cmd + shift + 3: free select
    • cmd + shift + 4: select window
    • cmd + shift + 5: fullscreen
  • things 3 - quick entry: ctrl + space
  • clipboard history app - cmd + shift + v
  • omniwm (issue #192)
    • Focus: Option+←↓↑→ → Option+H/J/K/L
    • Move window: Option+Shift+←↓↑→ → Option+Shift+H/J/K/L
    • Toggle fullscreen: Option+Return → Control+Option+Return
    • Toggle workspace layout: Option+Shift+L → Option+Shift+W (freed L for move)

10. System Settings update

去 system settings 里做三件事:

  • 除非万不得已,关闭绝大多数 app 的 notifications.
  • 尽量减少 menu bar 中的项目,有些也在各自 app 中设置。
  • 减少 login items 和 app background activity 允许的 app.

11. Name changing

更改 computer name, host name 和 local host name:

# check
scutil --get ComputerName; scutil --get LocalHostName; scutil --get HostName

# set
sudo scutil --set ComputerName new-computer-name
sudo scutil --set LocalHostName new-local-host-name
sudo scutil --set HostName new-host-name

我的习惯是把 computer name 用我的常用 handle + 数字组合,hostname 则用一个简单的名字。

12. doom emacs (optional)

潜在的操作:doom emacs 需要单独配置一下,这里就不赘述了。先前选择用 emacs-plus 而不是 homebrew 直接安装 emacs,也是因为需要 built with native compilation support.

13. ghostty config

依照这个 gist 对 ghostty config 做修改。

14. .dotfiles (w. git + chezmoi + cheznav)

我的 dotfiles.

软件

之前我喜欢把自己电脑上目前安装的 app 做成一个不定期更新的列表,然后把当下没有安装,但是以前用过的 app 放在后面。现在觉得太麻烦了,尤其是有 mini + air 两台设备之后,维护就更添一分精力。

索性做一个大合集堆在一起,也不做简单描述了,纯粹作为一个记录。如果未来的我在设置新电脑的时候有需要可以快速瞥一眼过一遍——反正最核心的需求已经在上述的安装过程中满足了。

归档

以前用过、目前未在用的 app,留档备查。

字体

Sans-serif

Serif

Monospace

KOReader(Kobo)配置备忘

updated on 2026-10-03

整理自站内相关记录(如 Kobo KOReader 重装、字典、Calibre 与 USB),方便以后重装或换机时一页看完。设备以 Kobo + KOReader 为主;其他机型安装路径见 官方 Wiki。

重装前备份

安装与更新

Calibre 与 USB 传输(易踩坑)

  • 必须在 Kobo 原生首页进入 USB 传输模式,不要在 KOReader 里开 USB。否则 Calibre 可能认不出刚传的书——因为设备侧的 KoboReader.sqlite(例如 macOS 上常见为 /Volumes/KOBOeReader/.kobo/KoboReader.sqlite)需要在 Kobo 系统界面 连接时才会按预期更新;在 KOReader 下连接则不会完整更新这份库信息。
  • 隐藏目录在 Finder 里可用 ⌘ + ⇧ + . 切换显示。

字典

  • 词典来源示例:reader.dict(基于 Wiktionary;单语免费,双语为一次性付费)、以及社区分享的词典包(如 Reddit 讨论中的 Oxford 等,自行甄别版权与来源)。
  • 安装路径(Kobo):在 /Volumes/… 下进入 .adds/ 中 KOReader 的数据目录,将词典文件放入 data/dict/(具体层级以你设备上实际路径为准,可用终端 find 辅助定位)。
  • 官方说明:Dictionary support

字体与图书元数据

Plugin

Wallpaper

User patches

官方说明:User patches(koreader/patches/ 目录,文件名与优先级规则见文档)。

个人在用:

灵感参考:r/koreader 展示帖。

提示:大版本升级后若出现奇怪黑屏或退出卡顿,优先排查是否手滑覆盖错文件;必要时干净重装 + 按上表逐步恢复补丁。

路径速查(macOS 挂载 Kobo 时)

用途典型路径(卷名因设备而异)
Kobo 书库数据库/Volumes/KOBOeReader/.kobo/KoboReader.sqlite
KOReader 标注等剪贴板导出/Volumes/KOBOeReader/.adds/koreader/clipboard/
KOReader 数据根目录/Volumes/KOBOeReader/.adds/koreader/(其下含 data/dict/ 等)

延伸阅读

文本