浏览代码

Moved git.io url to https

git.io now redirects to https. So the current function break. Changing it to https fixes the issue.
Sharat M R 9 年之前
父节点
当前提交
f28c0a81b7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/github/github.plugin.zsh

+ 1 - 1
plugins/github/github.plugin.zsh

@@ -71,7 +71,7 @@ exist_gh() { # [DIRECTORY]
 #
 git.io() {
   emulate -L zsh
-  curl -i -s http://git.io -F "url=$1" | grep "Location" | cut -f 2 -d " "
+  curl -i -s https://git.io -F "url=$1" | grep "Location" | cut -f 2 -d " "
 }
 
 # End Functions #############################################################