onvno / pokerface

日常技术文章阅读整理
3 stars 0 forks source link

20190505 - Git快捷打开窗口 #20

Open onvno opened 5 years ago

onvno commented 5 years ago
alias gogit="open `git remote -v | grep fetch | head -1 | cut -f2 | cut -d' ' -f1| sed -e's/com:/com\//' -e's/git@/http:\/\//' -e's/\.git$//'`"

使用:

$ code ./zshrc
$ 写入命令
$ source ~/.zshrc
$ cd 仓库地址
$ gogit

使用:

onvno commented 5 years ago

发现一些相关仓库及文档:

2

python -mwebbrowser http://example.com