爱意满满的作品展示区。
lyc575757

一个在 GitHub 上展示你最常用命令的小玩具

  •  
  •   lyc575757 · Aug 14, 2022 · 3069 views
    This topic created in 1367 days ago, the information mentioned may be changed or developed.

    灵感来自于这个帖子 /t/867016.

    想着如果能把这个数据放到 GitHub 个人信息中展示会很 COOOL !

    先看一下效果(可以在 GitHub README 和 Gist 中显示)

    gitmand

    gist

    实现方式大致是这样子的:

    1. 先通过 npm 安装一个 node 脚本,运行一下会生成一个包含你当前终端历史命令统计数据的 JSON 文件。
    2. 将这个 JSON 文件上传至 GitHub 触发 GitHub Actions ,这个 Actions 会生成一个 SVG 文件和一个 Gist 以供使用。

    具体的使用方式见源代码仓库

    目前 SVG 只有一个主题,如果用的人多的话,后面会增加更多 Terminal 主题。

    6 replies    2022-08-17 18:57:48 +08:00
    me221
        1
    me221  
       Aug 14, 2022
    good idea
    YR1044
        2
    YR1044  
       Aug 15, 2022
    baba is you
    echoyangjx
        3
    echoyangjx  
       Aug 15, 2022 via Android
    good idea
    shxxy
        4
    shxxy  
       Aug 15, 2022 via Android
    虽然也不算隐私,没事放出来给大家看一下,但是整个 actions 实时更新是否有点
    Hanser002
        5
    Hanser002  
       Aug 16, 2022
    good idea
    sobev
        6
    sobev  
       Aug 17, 2022
    可以
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   964 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 69ms · UTC 20:00 · PVG 04:00 · LAX 13:00 · JFK 16:00
    ♥ Do have faith in what you're doing.