自 2017 年持续迭代
lingti-code
AI 时代的开发者标配环境。Tmux + Neovim + Zsh 三件套,macOS、Ubuntu、Docker 一行命令装齐。
curl -fsSL lingti.com/code/install.sh | bash支持 macOS / Ubuntu / Docker
安装
安装
三种方式都行,都装出同一套环境。
curl -fsSL lingti.com/code/install.sh | bash功能
新机器需要的一切
shell、编辑器、复用器、Git、AI 工具链都有默认好的配置,上百条别名和快捷键,个人化扩展也很方便。
Shell
ZSH + oh-my-zsh + agnoster 主题,100+ 条 git/docker/k8s 别名,fasd 的 z 式目录跳转,`~/.zsh.after/` 做机器本地覆盖。
编辑器
Neovim + SpaceVim 搭 nvim-lspconfig,自动挂载 pyright / gopls / tsserver / sourcekit / solargraph / rust-analyzer。ALE 保存时自动 fix。
多路复用
Tmux 用 Ctrl-a 前缀,装了 vim-tmux-navigator —— Vim 分屏和 tmux pane 共用 C-h/j/k/l 导航,大量会话 / pane / copy-mode 快捷键。
Git
数百条别名,`gpr-all` 并行 rebase 当前目录下所有仓库,`ghuse` 一键切换当前项目的 GitHub 身份(local user.email + SSH 别名),commitlint 强制 conventional commits。
AI
Claude Code CLI 原生配置(状态栏显示周用量 bar),`yolo` 跳权限模式,`ralphal` 按 `prd.json` 自主循环开发。
小工具
pdf2png、md2pdf、html2img、html2slides、yt-share、chrome-mcp、ferry —— 一组解决跨机调试、内容生成实际痛点的 CLI。
快捷键
快捷键速查
最常用的 40 条命令。按别名、展开命令或说明搜索。打 lingti 标签的是灵缇代码自己扩展的——其余都是标准 oh-my-zsh。
gstgit statusgaagit add --allgcmsggit commit -mgcamgit commit --all --messagegclingtigit commit --verbosegitauthor-aware
gpgit pushgpfgit push --force-with-lease --force-if-includesgprgit pull --rebasegpragit pull --rebase --autostashgco <br>git checkoutgcb <br>git checkout -bgrbgit rebasegrbcgit rebase --continuegstagit stash pushgstpgit stash popgloggit log --oneline --decorate --graphgdgit diffgdsgit diff --stagedgpr-all [DIR]lingtigit pull --rebase in every subdir repoghuse [alias]lingtiswitch per-repo GitHub identityghpush <alias>lingtipush with a specific account’s SSH keyz <query>cd to best-matching recent dir (fasd)v <query>open best-matching recent file in vim (fasd)...cd ../..clslingticlear; lslllingtils -alGh (long list with human sizes)ls_folder_sizelingtidu -sch .[!.]* * | sort -hPRE -lingtisplit pane verticallyPRE _lingtisplit pane horizontallyPRE ^lingtimove current window to position 1 + focusPRE C-plingtienable HTTP proxy on 127.0.0.1:8668PRE @lingtiprompt for proxy port (prefilled 8668)PRE C-xlingtidisable HTTP proxyC-]lingtienter copy-mode (no prefix)yololingtiClaude Code with --dangerously-skip-permissionsralphal [N]lingtiautonomous iteration loop from prd.jsonkkubectlkexec -p <proj>lingtiopen a shell inside a matching podklogslingtitail logs across matching podsbrewulingtibrew update && upgrade && cleanup && doctorgarlingtireload every running zsh (killall -HUP)aelingtiedit aliases.zshsslingtisource ~/.zshrcmd2pdf <file.md>lingtimarkdown → PDF via headless Chromepdf2png <file.pdf>lingtiPDF → PNG per pageproxylingtiinteractive port picker (default 8668)proxy <port>lingtiset to specific portproxy offlingtiunsetset_ss_proxy [port]lingtiSOCKS5 proxy (default 1080)专业信赖
工业与学术共同信赖
灵缇产品家族每天用它交付代码——面向 1 万 + 企业客户、1000 万 + 个人用户;同时被中国人民大学智慧治理学院用于教学与研究。
自 2017 年 3 月 8 日持续维护,2026 年 1 月 29 日正式开源。目标是成为全球开发者打开新电脑第一件装的事。
开始使用
一行命令,一分钟内,第一天就能生产力拉满。
curl -fsSL lingti.com/code/install.sh | bash