V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
vangie
V2EX  ›  程序员

you-should-use - 一个提醒你使用别名和现代命令的 Shell 插件

  •  
  •   vangie ·
    vangie · 8 小时 41 分钟前 · 334 次点击

    分享一个自己写的 Shell 插件,主要解决两个痛点:

    1. 设了一堆别名但总是忘记用
    2. 还在用 cat/ls/find 这些老命令,不知道有更好的替代

    比如你输入 git checkout -b feature ,但你已经有 gcb 这个别名,它会提醒你:

    💡 Hey! You should use your alias: gcb → git checkout -b

    也会建议你用现代工具替代旧命令:

    💡 Hey! You should use: eza → ls (modern replacement with git integration)

    主要特性:

    • 支持 Zsh 、Bash 和 Nushell
    • 检测普通别名、Git 别名、全局别名、后缀别名
    • 推荐 eza 、bat 、ripgrep 、fd 、zoxide 等现代 CLI 工具
    • 缺少工具时显示安装命令
    • 可选 AI 建议(本地 LLM )
    • Homebrew / zinit / oh-my-zsh / curl 一键安装

    安装: brew install vangie/formula/you-should-use

    curl -fsSL https://ysu.codelife.me/install.sh | sh

    GitHub: https://github.com/vangie/you-should-use

    主页: https://ysu.codelife.me

    欢迎试用和反馈!

    1 条回复    2026-03-29 19:27:13 +08:00
    huihuimoe
        1
    huihuimoe  
       8 小时 33 分钟前 via iPhone
    Hey! You should use: fish → zsh/bash/nushell

    XD
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   846 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 20:00 · PVG 04:00 · LAX 13:00 · JFK 16:00
    ♥ Do have faith in what you're doing.