Skip to content

Commit

Permalink
feat(1.0): 设置运行时的LOCALE相关变量
Browse files Browse the repository at this point in the history
设置Shell运行时的LOCALE为"zh_CN.UTF-8"
  • Loading branch information
tonydeng committed Sep 29, 2016
1 parent 83758ab commit 9011c0b
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions command/git-ci
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#!/bin/sh
function init() {
LANG="zh_CN.UTF-8"
LC_CTYPE="zh_CN.UTF-8"
export LANG LC_CTYPE
LOCALE=(LANG LC_COLLATE LC_CTYPE LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME LC_ALL)
LANGUAGE="zh_CN.UTF-8"
for l in $LOCALE ; do
export "$l=$LANGUAGE"
done
TYPE=(backlog feat fix docs style refactor test chore)
}

Expand Down Expand Up @@ -39,13 +41,13 @@ function mainMessage() {
exit 1
fi
echo '本次提交的范围,建议填写版本号 ($version):'
read -p '' scope
read scope
echo "请添加简短的,必要的对本次提交的描述:"
read -p '' subject
read subject
echo "添加一个完整提交的描述:"
read -p '' body
read body
echo "列出本次提交解决的、可以关闭的所有相关问题,建议使用关键字 refs 、 close:"
read -p '' footer
read footer
}
# 其他消息内容
function otherMessage() {
Expand Down

0 comments on commit 9011c0b

Please sign in to comment.