[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-82635":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":9,"pushedAt":9,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":15,"starSnapshotCount":15,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},82635,"ghostty-terminal-config","justhalfbit\u002Fghostty-terminal-config","justhalfbit","macOS 终端美化配置：Ghostty + Starship + zsh 插件（从 iTerm2 + oh-my-zsh 迁移的轻量方案）",null,"Shell",165,31,110,1,0,12,50,53,36,4.52,false,"main",true,[],"2026-06-12 02:04:26","# Ghostty Terminal Config\n\nmacOS 下基于 Ghostty + Starship + zsh 插件的终端美化方案，从 iTerm2 + oh-my-zsh 迁移而来，更轻量更快。\n\n## 效果\n\n- 彩虹条提示符（基于 Starship 官方 catppuccin-powerline 预设，启用换行显示）\n- 半透明毛玻璃窗口\n- 语法高亮、自动建议、模糊搜索\n\n## 包含的配置文件\n\n| 文件 | 说明 | 安装位置 |\n|------|------|---------|\n| `ghostty\u002Fconfig` | Ghostty 终端配置（字体、主题、窗口、光标） | `~\u002F.config\u002Fghostty\u002Fconfig` |\n| `starship\u002Fstarship.toml` | Starship 彩虹条提示符配置（官方预设 + 换行） | `~\u002F.config\u002Fstarship.toml` |\n| `zsh\u002F.zshrc` | zsh 配置（插件、工具、别名、快捷键） | `~\u002F.zshrc` |\n\n## 一键安装\n\n```bash\nbash \u003C(curl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002Fjusthalfbit\u002Fghostty-terminal-config\u002Fmain\u002Finstall.sh)\n```\n\n安装前会询问确认，确认后自动执行：\n1. 通过 Homebrew 安装所有依赖\n2. 备份已有 Ghostty 和 Starship 配置文件\n3. 安装 Ghostty 和 Starship 配置（覆盖）\n4. 将 zsh 配置追加到 `~\u002F.zshrc` 尾部（不覆盖用户已有内容）\n\n## 备份与恢复\n\n安装脚本会自动将已有配置备份到 `~\u002F.config-backup\u002F\u003C时间戳>\u002F` 目录。\n\n备份文件对应关系：\n\n| 备份文件 | 原始位置 |\n|---------|---------|\n| `~\u002F.config-backup\u002F\u003C时间戳>\u002Fghostty-config` | `~\u002F.config\u002Fghostty\u002Fconfig` |\n| `~\u002F.config-backup\u002F\u003C时间戳>\u002Fstarship.toml` | `~\u002F.config\u002Fstarship.toml` |\n\n恢复命令：\n\n```bash\n# 查看备份目录（找到对应时间戳）\nls ~\u002F.config-backup\u002F\n\n# 恢复（替换 \u003C时间戳> 为实际目录名）\ncp ~\u002F.config-backup\u002F\u003C时间戳>\u002Fghostty-config ~\u002F.config\u002Fghostty\u002Fconfig\ncp ~\u002F.config-backup\u002F\u003C时间戳>\u002Fstarship.toml ~\u002F.config\u002Fstarship.toml\n```\n\n### 卸载 zsh 配置\n\n删除 `~\u002F.zshrc` 中 `# >>> ghostty-terminal-config >>>` 到 `# \u003C\u003C\u003C ghostty-terminal-config \u003C\u003C\u003C` 之间的所有内容即可。\n\n## 依赖\n\n| 工具 | 用途 |\n|------|------|\n| [Ghostty](https:\u002F\u002Fghostty.org) | GPU 加速终端模拟器 |\n| [Starship](https:\u002F\u002Fstarship.rs) | 跨 shell 提示符 |\n| [fzf](https:\u002F\u002Fgithub.com\u002Fjunegunn\u002Ffzf) | 模糊搜索（Ctrl+R 搜历史，Ctrl+T 搜文件） |\n| [zoxide](https:\u002F\u002Fgithub.com\u002Fajeetdsouza\u002Fzoxide) | 智能目录跳转（`z foo` 代替 `cd`） |\n| [eza](https:\u002F\u002Fgithub.com\u002Feza-community\u002Feza) | 替代 ls，彩色图标 |\n| [bat](https:\u002F\u002Fgithub.com\u002Fsharkdp\u002Fbat) | 替代 cat，语法高亮 |\n| [yazi](https:\u002F\u002Fgithub.com\u002Fsxyazi\u002Fyazi) | 终端文件管理器 |\n| [zsh-autosuggestions](https:\u002F\u002Fgithub.com\u002Fzsh-users\u002Fzsh-autosuggestions) | 历史命令自动建议 |\n| [zsh-syntax-highlighting](https:\u002F\u002Fgithub.com\u002Fzsh-users\u002Fzsh-syntax-highlighting) | 命令语法高亮 |\n| [zsh-completions](https:\u002F\u002Fgithub.com\u002Fzsh-users\u002Fzsh-completions) | Tab 补全增强 |\n| [Maple Mono NF](https:\u002F\u002Fgithub.com\u002Fsubframe7536\u002Fmaple-font) | 终端字体（Nerd Font，中文显示优秀） |\n\n## 手动安装\n\n### 1. 安装依赖\n\n```bash\nbrew install --cask font-maple-mono-nf\nbrew install --cask ghostty\nbrew install starship fzf zoxide eza bat yazi zsh-autosuggestions zsh-syntax-highlighting zsh-completions\n```\n\n### 2. 下载配置文件\n\n```bash\ngit clone --depth 1 https:\u002F\u002Fgithub.com\u002Fjusthalfbit\u002Fghostty-terminal-config.git \u002Ftmp\u002Fghostty-config\n```\n\n### 3. 安装配置文件\n\n```bash\nmkdir -p ~\u002F.config\u002Fghostty\ncp \u002Ftmp\u002Fghostty-config\u002Fghostty\u002Fconfig ~\u002F.config\u002Fghostty\u002Fconfig\ncp \u002Ftmp\u002Fghostty-config\u002Fstarship\u002Fstarship.toml ~\u002F.config\u002Fstarship.toml\ncat \u002Ftmp\u002Fghostty-config\u002Fzsh\u002F.zshrc >> ~\u002F.zshrc\n```\n\n> 注意：zsh 配置是追加到 `~\u002F.zshrc` 尾部，不会覆盖已有内容。如果重复执行需手动去重。\n\n### 4. 清理并重启\n\n```bash\nrm -rf \u002Ftmp\u002Fghostty-config\n```\n\n重启 Ghostty 终端生效。\n\n## Starship 预设说明\n\n彩虹条基于 `starship preset catppuccin-powerline` 官方预设，唯一改动：\n\n- `[line_break] disabled = false`：彩虹条一行，输入符号在下一行\n\n## 快捷键速查\n\n| 快捷键 | 功能 |\n|--------|------|\n| `Ctrl+F` | 接受自动建议 |\n| `Ctrl+R` | fzf 模糊搜索历史命令 |\n| `Ctrl+T` | fzf 模糊搜索文件 |\n| `Tab` | 补全，连续按在候选列表中移动 |\n\n## 别名速查\n\n| 别名 | 实际命令 |\n|------|---------|\n| `ls` | `eza --icons --group-directories-first` |\n| `ll` | `eza -l --icons --sort=name` |\n| `lt` | `eza --tree --icons --level=2` |\n| `cat` | `bat --paging=never --style=plain` |\n| `y` | yazi 文件管理器（退出自动 cd） |\n| `z foo` | zoxide 智能跳转到包含 foo 的目录 |\n","该项目提供了一套针对 macOS 的终端美化配置方案，基于 Ghostty、Starship 和 zsh 插件，旨在为用户提供一个轻量且美观的终端环境。核心功能包括彩虹条提示符、半透明毛玻璃窗口效果以及语法高亮等增强特性，同时支持自动建议和模糊搜索等功能，极大提升了开发效率与用户体验。该配置特别适合那些希望在保持系统性能的同时拥有高度定制化终端界面的 macOS 用户使用。通过一键安装脚本，用户可以轻松完成所有必要组件的设置，并且项目还提供了详细的备份与恢复指南以确保数据安全。",2,"2026-06-11 04:08:48","CREATED_QUERY"]