GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - zhijun-dai/yuque-terminal-setup

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
configs
configs
 
 
fonts
fonts
 
 
scripts
scripts
 
 
.gitattributes
.gitattributes
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
setup.sh
setup.sh
 
 

Repository files navigation

terminal-setup

MIT License

跨 Windows + WSL + Linux 的终端环境配置:Starship(Catppuccin Mocha 背景块风格)提示符 + 现代命令行工具链。一套配置,三端通用。

效果

 󰕈 yuque  …/project    main ●2    (ai-venv)   18:09  ❯
  • Windows(PowerShell)与 WSL/Linux(zsh)共用同一份 starship.toml,系统图标自动适配(Windows 显示 󰍳,Ubuntu 显示 󰕈)
  • 两行布局:第一行信息,第二行 ❯ 输入(成功绿 / 失败红)

功能清单

类别 内容
提示符 Starship + Catppuccin Mocha(目录/git/venv/时间/耗时/退出码)
Shell zsh + oh-my-zsh(WSL/Linux);PowerShell 5.1/7(Windows)
工具链 zoxide(z 智能 cd)、fzf(Ctrl+R 历史 / Ctrl+T 文件)、eza(ls)、bat(cat)、fd(find)、ripgrep(grep)
增强 btop(系统监控)、tldr(命令速查)、git-delta(彩色 diff)、lazygit、zellij
字体 JetBrainsMono Nerd Font(仓库自带 fonts/)
快捷 dsp = claude 危险模式(--dangerously-skip-permissions)

目录结构

terminal-setup/
├── configs/
│   ├── starship.toml            # Starship 主题(三端通用)
│   ├── zshrc                    # zsh 配置(WSL/Linux)
│   ├── powershell_profile.ps1   # PowerShell 配置(占位符模板)
│   └── windows-terminal.json    # Windows Terminal 主题/字体参考
├── scripts/
│   └── install-windows.ps1      # Windows 侧部署
├── fonts/                       # Nerd Font(仓库自带,无需下载)
├── setup.sh                     # WSL/Linux 一键部署
└── README.md

快速开始

方式一:Windows(原生 PowerShell)

git clone https://github.com/zhijun-dai/yuque-terminal-setup
cd terminal-setup
.\scripts\install-windows.ps1

自动完成:winget 装 Starship → 部署 starship.toml → 部署 PowerShell profile(5.1 + 7 自动检测,先备份)→ 提示字体安装。

然后手动合并 configs/windows-terminal.json 到 Windows Terminal 配置(%LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json,先备份):profiles.defaults(colorScheme / font / padding)+ schemes 里的 Catppuccin Mocha。

方式二:WSL(Windows Subsystem for Linux)

git clone https://github.com/zhijun-dai/yuque-terminal-setup
cd terminal-setup
./setup.sh            # 交互执行(sudo 需输一次密码)
./setup.sh --dry-run  # 先预览

自动完成:apt 换清华源 → 安装 zsh/工具链 → 部署 zshrc/starship.toml(先备份)→ 配置 git-delta。

WSL 的字体装在 Windows 侧(不是 Linux 侧)——运行方式一里的 install-windows.ps1 即可。

方式三:原生 Linux(双系统 / 桌面机)

git clone https://github.com/zhijun-dai/yuque-terminal-setup
cd terminal-setup
./setup.sh

自动完成:apt 换清华源 → 安装 zsh/工具链 → 自动安装 Nerd Font 到 Linux 侧(~/.local/share/fonts + fc-cache)→ 部署配置 → 配置 git-delta。

终端建议:Ghostty / kitty / WezTerm 等支持 Nerd Font 的终端模拟器。

国内网络说明

  • apt 源已自动换清华;npm/pip 源见各工具官方文档
  • oh-my-zsh、lazygit、zellij 等从 GitHub 下载,若失败可在 Windows 侧用 gh release download 后传入

回退

所有部署前都会备份:~/.zshrc.bak.*、~/.config/starship.toml.bak.*、Microsoft.PowerShell_profile.ps1.bak。

参考

  • lewislulu/terminal-setup — 结构、Starship 背景块风格、setup.sh 思路
  • radleylewis/zsh — 模块化 zsh 配置思路
  • Catppuccin — 配色

License

MIT

About

No description or website provided.

Topics

catppuccinclaude-codedotfilespowershellstarshipterminal-setupwslzsh

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.