微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

commandlinefu.cn 中文版commandlinefu

程序名称:commandlinefu.cn

授权协议: Public Domain

操作系统: Linux

开发语言:

commandlinefu.cn 介绍

commandlinefu.cn

打造 中文版的 http://commandlinefu.com

贡献你的力量

  • 下载代码

    $ git clone https://github.com/tg123/commandlinefu.cn.git
    cd commandlinefu.cn

  • 寻找一个没有翻译的文件 (会调用你的 $EDITOR 来编辑这个文件)

    ./tools/translateone.sh

  • 翻译参考

    $ git diff _data/head_n_20_filename_tail.yaml
    diff –git a/_data/head_n_20_filename_tail.yaml b/_data/head_n_20_filename_tail.yaml
    index b5d0efe..970e1a8 100644
    — a/_data/head_n_20_filename_tail.yaml
    +++ b/_data/head_n_20_filename_tail.yaml
    @@ -1,8 +1,7 @@
    commandlinefu_id: 7044
    translator:
    - weibo: ‘’
    -hide: true
    + weibo: tgic
    command: |-
    head -n 20 | tail
    summary: |-
    - Print all the lines between 10 and 20 of a file
    + 输出文件的10到20行

  • 说明

    1. weibo: tgic 会在页面显示出 @tgic 翻译
    2. 删除 hide: true 自动构建程序会知道你已经翻译了这个文件
    3. 内容就是 summary 编译成汉语就好了 当然命令你也可以修改
  • 发送你的 pull request

实现原理

网站使用 jekyll 构建. 可以通过运行

jekyll build

在本地构建你的网站

依赖的插件

关于使用commandlinefu.com内容

commandlinefu.com 站长 David Winterbottom :

You’re welcome to re-publish the commandlinefu content.

[](https://github.com/tg123/commandlinefu.cn/#%E6%8E%88%E6%9D%83public-

domain)授权(public domain)

commandlinefu.cn 官网

http://commandlinefu.cn/

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐