From c4b8c833150031a53773b98f08d1aef4d4219c41 Mon Sep 17 00:00:00 2001 From: maniac <45049766+maniac-en@users.noreply.github.com> Date: Sun, 2 May 2021 19:24:38 +0530 Subject: [PATCH] gist -u or gist --update will auto-complete user gists This commit will help the user to easily update their existing gist using zsh auto-completion rather than going to github and then extracting the required gist hash/URL Note: This commit effects the working of file: `src/_gist` --- src/_gist | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/_gist b/src/_gist index 77544a6..b105a56 100644 --- a/src/_gist +++ b/src/_gist @@ -36,6 +36,7 @@ # # * Akira Maeda # * Patrick Ziegler +# * Shivam Mehta # # ------------------------------------------------------------------------------ # -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*- @@ -53,7 +54,7 @@ _arguments -C \ '(--no-private)'--no-private'[Makes your gist no private.]' \ '(-d --description)'{-d,--description}'[Adds a description to your gist.]:DESCRIPTION' \ '(-s --shorten)'{-s,--shorten}'[Shorten the gist URL using git.io.]' \ - '(-u --update)'{-u,--update}'[Update an existing gist.]:URL ID' \ + '(-u --update)'{-u,--update}'[Update an existing gist.]:URL ID:user_gists' \ '(-a --anonymous)'{-a,--anonymous}'[Create an anonymous gist.]' \ '(-c --copy)'{-c,--copy}'[Copy the resulting URL to the clipboard]' \ '(-e --embed)'{-e,--embed}'[Copy the embed code for the gist to the clipboard]' \