diff options
author | Tuowen Zhao <ztuowen@gmail.com> | 2022-07-03 20:48:55 -0400 |
---|---|---|
committer | Tuowen Zhao <ztuowen@gmail.com> | 2022-07-03 20:48:55 -0400 |
commit | 6e0a7765188ef970d738108d11eaecc7b79a5f5e (patch) | |
tree | 01712cef5fe2cc74a8bceb2abc2e54ca2c54aff1 /plugins/github | |
parent | 901674e84756d64024cdc70f9590c3557c6d92d6 (diff) | |
parent | 4c82a2eedf0c43d47601ffa8b0303ed1326fab8f (diff) | |
download | zsh-6e0a7765188ef970d738108d11eaecc7b79a5f5e.tar.gz zsh-6e0a7765188ef970d738108d11eaecc7b79a5f5e.tar.bz2 zsh-6e0a7765188ef970d738108d11eaecc7b79a5f5e.zip |
Merge remote-tracking branch 'github/master'
Diffstat (limited to 'plugins/github')
-rw-r--r-- | plugins/github/README.md | 1 | ||||
-rw-r--r-- | plugins/github/github.plugin.zsh | 5 |
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/github/README.md b/plugins/github/README.md index af2b8a4e7..5d8b62501 100644 --- a/plugins/github/README.md +++ b/plugins/github/README.md @@ -11,7 +11,6 @@ This plugin supports working with GitHub from the command line. It provides a fe * `empty_gh` - Creates a new empty repo (with a `README.md`) and pushes it to GitHub * `new_gh` - Initializes an existing directory as a repo and pushes it to GitHub * `exist_gh` - Takes an existing repo and pushes it to GitHub -* `git.io` - Shortens a URL using [git.io](https://git.io) ## Installation diff --git a/plugins/github/github.plugin.zsh b/plugins/github/github.plugin.zsh index 8e4b97352..79114ff69 100644 --- a/plugins/github/github.plugin.zsh +++ b/plugins/github/github.plugin.zsh @@ -68,8 +68,9 @@ exist_gh() { # [DIRECTORY] # documentation: https://github.com/blog/985-git-io-github-url-shortener # git.io() { - emulate -L zsh - curl -i -s https://git.io -F "url=$1" | grep "Location" | cut -f 2 -d " " + # emulate -L zsh + # curl -i -s https://git.io -F "url=$1" | grep "Location" | cut -f 2 -d " " + print -u2 ${(%):-"%F{yellow}%BThe \`git.io\` is deprecated.%b\nView the announcement made by GitHub: https://github.blog/changelog/2022-01-11-git-io-no-longer-accepts-new-urls/%f"} } # End Functions ############################################################# |