8 Star 19 Fork 5

hotmocha / minitalk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vv 301 Bytes
一键复制 编辑 原始数据 按行查看 历史
hotmocha 提交于 2016-02-02 14:18 . add some shell
echo $#
if [ $# -eq 0 ]; then
exit -1
fi
oldIFS=$IFS
IFS=:
count=0
for i in $*;
do
[ $count -eq 0 ] && inputpath=$i;
[ $count -eq 1 ] && line=$i;
count=$((count + 1))
done;
if [ $count -eq 1 ]; then
vim $1
else
vim "+$line" "$inputpath"
fi
IFS=$oldIFS
C
1
https://gitee.com/hotmocha/minitalk.git
git@gitee.com:hotmocha/minitalk.git
hotmocha
minitalk
minitalk
master

搜索帮助