diff options
author | Sukka <isukkaw@gmail.com> | 2022-06-13 02:22:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-12 20:22:29 +0200 |
commit | 50550c70eaa36e79fdf380bdc4ddad4a1ad581a0 (patch) | |
tree | b060e2bf34923ec38b5249947ed9c014584bc5bc /plugins/github/github.plugin.zsh | |
parent | 055c3b6cb30c5e658914000597b8582afc3aa40e (diff) | |
download | zsh-50550c70eaa36e79fdf380bdc4ddad4a1ad581a0.tar.gz zsh-50550c70eaa36e79fdf380bdc4ddad4a1ad581a0.tar.bz2 zsh-50550c70eaa36e79fdf380bdc4ddad4a1ad581a0.zip |
fix(github): deprecate the `git.io` command (#10896)
Diffstat (limited to 'plugins/github/github.plugin.zsh')
-rw-r--r-- | plugins/github/github.plugin.zsh | 5 |
1 files changed, 3 insertions, 2 deletions
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 ############################################################# |