打造 中文版的 http://commandlinefu.com
$ git clone https://github.com/tg123/commandlinefu.cn.git
cd commandlinefu.cn
hide:true
,并将weibo: ''
替换成你的微博用户名./tools/set_translator_weibo_and_show.sh 你的微博用户名
mkdir ~/.commandlinefu && echo "weibo_id" > ~/.commandlinefu/weibo.conf
./tools/set_translator_weibo_and_show.sh
cp tools/pre-commit .git/hooks/
sudo chmod u+x .git/hooks/pre-commit
$ 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 <filename> | tail
summary: |-
- Print all the lines between 10 and 20 of a file
+ 输出文件的10到20行
weibo: tgic
会在页面显示出 @tgic
翻译hide: true
自动构建程序会知道你已经翻译了这个文件pull request
安装需要的软件 ruby 需要 > 1.9.2
gem install jekyll nokogiri json
网站使用 jekyll 构建. 需要至少1.3
可以通过运行
在本地构建你的网站
commandlinefu.com 站长 David Winterbottom :
You're welcome to re-publish the commandlinefu content.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4