V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
lyc575757
V2EX  ›  分享创造

一个交互式自动补全 npm run 命令的 cli 工具

  •  
  •   lyc575757 · 161 天前 · 753 次点击
    这是一个创建于 161 天前的主题,其中的信息可能已经有所发展或是发生改变。

    效果演示

    nrun demo

    使用方法

    cli

    npm insall -g @yuyin/nrun
    nrun
    

    Zsh 插件集成

    git clone -b zsh https://github.com/yuyinws/nrun ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-nrun
    
    # .zshrc
    plugins=(
       ...
       zsh-nrun
    )
    

    在安装 zsh 插件后,当你输入 npm run,pnpm,yarn 等命令并且再按 2 次空格键,即可触发nrun

    GitHub 仓库

    欢迎大家使用并反馈意见

    1 条回复    2023-11-21 20:54:53 +08:00
    iamm
        1
    iamm  
       161 天前
    我直接用 ni [github]( https://github.com/antfu/ni#nr---run)
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2280 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 07:17 · PVG 15:17 · LAX 00:17 · JFK 03:17
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.