Giter Site home page Giter Site logo

gists's Introduction

gists - show my gists

Install

$ cargo install ripgrep # brew install ripgrep
$ sudo apt install ruby
$ gem install gist
$ gist --login
$ git clone https://github.com/miyagaw61/gists
$ cp -a ./gists/gists /usr/local/bin/
$ go get github.com/motemen/ghq
$ git config --global ghq.root "~/src"
$ cat > /path/to/git_token
username:XXXXXXXXXXXXXXXXXXXXXXX
$ export GIT_TOKEN_FILE=/path/to/git_token
$ pip install git+https://github.com/miyagaw61/enert
$ gists --help
$ gists

Usage

usage: gists <[options]...>

positional arguments:
  args

optional arguments:
  -h, --help
  -d REGEX_FOR_DESCRIPTION, --dgrep REGEX_FOR_DESCRIPTION
  -f REGEX_FOR_FILENAME, --fgrep REGEX_FOR_FILENAME
  -p, --public
  -s, --secret
  -c GIST_ID, --clone GIST_ID
  -a, --all-clone
  -P FILE_NAME [-d DESCRIPTION], --push-public FILE_NAME [-d DESCRIPTION]
  -S FILE_NAME [-d DESCRIPTION], --push-secret FILE_NAME [-d DESCRIPTION]
  -F, --force           overwrite if a directory already exists
  -u, --use-ssh
  -r, --rename

  • show all gists
gists
  • show all public gists or secret gists
gists -p
gists -s
  • file name grep
gists -f '.*md'
  • description grep
gists -d 'linux'
  • clone one gist
gists -c 0123456789abcdef
  • clone some gists at once time
gists -s -f '.*md' --all-clone
  • clone ( use ssh )
gists -s --all-clone --use-ssh
  • push ( public )
gists --push-public FILENAME.md
  • push ( secret )
gists --push-secret FILENAME.md
  • update gists ( This is safe even if you have something to do. )
gists -s --all-clone --force

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.