Skip to content

Commit

Permalink
gist -u or gist --update will auto-complete user gists
Browse files Browse the repository at this point in the history
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`
  • Loading branch information
maniac-en committed May 2, 2021
1 parent e14d470 commit c4b8c83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/_gist
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#
# * Akira Maeda <https://github.com/glidenote>
# * Patrick Ziegler <https://github.com/patrick96>
# * Shivam Mehta <https://github.com/maniac-en>
#
# ------------------------------------------------------------------------------
# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
Expand All @@ -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]' \
Expand Down

0 comments on commit c4b8c83

Please sign in to comment.