Skip to content

a11thwn/cursor-shell-pack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Cursor Shell Pack (macOS / zsh)

一键把你的终端配置成:oh-my-zsh + 自动补全 + 语法高亮 + fzf + Starship 自动切换(Cursor 简洁版 / 默认终端花哨版)

包含内容

  • deploy.sh:一键部署脚本(可重复执行,自动备份现有配置)。
  • configs/.zshrc:含 oh-my-zsh 插件与 Starship 自动切换。
  • configs/.zprofile:确保登录 Shell 加载 Homebrew 与 .zshrc
  • configs/starship-cursor.toml:Cursor/VSCode 内置终端的简洁 Starship 配置。
  • configs/starship-fancy.toml:普通终端的花哨 Starship 配置。
  • 本 README。

快速开始

# 1) 解压并进入目录
unzip cursor-shell-pack.zip
cd cursor-shell-pack

# 2) 赋予执行权限并运行
chmod +x deploy.sh
./deploy.sh

# 3) 重新打开终端(或手动执行)
source ~/.zprofile
source ~/.zshrc

# 4) 验证(普通终端)
echo $STARSHIP_CONFIG   # 预期: ~/.config/starship-fancy.toml
starship explain | head -n 20

# 5) 验证(Cursor/VSCode 终端)
echo $STARSHIP_CONFIG   # 预期: ~/.config/starship-cursor.toml
starship explain | head -n 20

常见问题

  • 提示为空? 多半是 .zshrc 未被加载。~/.zprofile 已内置自动 source 逻辑;重新开一个终端即可。
  • 没有历史提示? 历史提示来自 zsh-autosuggestions,并依赖你的历史记录。先执行几条命令再试。
  • Powerlevel10k 冲突? 本配置默认禁用任何 ZSH 主题(ZSH_THEME=""),由 Starship 接管提示符。

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages