diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 16 |
1 files changed, 9 insertions, 7 deletions
| @@ -28,16 +28,18 @@ gist | |||
| 28 | gist new | 28 | gist new |
| 29 | # Create private gist with files 'foo' and 'bar' | 29 | # Create private gist with files 'foo' and 'bar' |
| 30 | gist new -p foo bar | 30 | gist new -p foo bar |
| 31 | # Check information of your third gist | ||
| 32 | gist detail 3 | ||
| 31 | # Get the path and cd to cloned repo with subshell | 33 | # Get the path and cd to cloned repo with subshell |
| 32 | gist 3 | 34 | gist 3 |
| 33 | # Push changes in your third gist to the remote repo | ||
| 34 | gist push 3 | ||
| 35 | # Update the description of your third gist | ||
| 36 | gist edit 3 | ||
| 37 | # Add tags to your third gist | ||
| 38 | gist tag 3 | ||
| 39 | # List your gists with tags instead of URL | 35 | # List your gists with tags instead of URL |
| 40 | gist tag | 36 | gist tag |
| 37 | # Add tags to your third gist | ||
| 38 | gist tag 3 | ||
| 39 | # Update the description of your third gist | ||
| 40 | gist edit 3 | ||
| 41 | # Push changes in your third gist to the remote repo | ||
| 42 | gist push 3 | ||
| 41 | # Delete gists with indices 3, 4 and 5 | 43 | # Delete gists with indices 3, 4 and 5 |
| 42 | gist delete 3 4 5 | 44 | gist delete 3 4 5 |
| 43 | # Or use Brace Expansion | 45 | # Or use Brace Expansion |
| @@ -98,7 +100,7 @@ Say you delete gists with command `gist delete <index-of-gist>...`, the local gi | |||
| 98 | 100 | ||
| 99 | `~/.config/gist.conf` is created automatically when you run `gist` at the first time, it only allows current user to read and write (permission 600). | 101 | `~/.config/gist.conf` is created automatically when you run `gist` at the first time, it only allows current user to read and write (permission 600). |
| 100 | 102 | ||
| 101 | Valid keys are [`user`](#user), [`token`](#token), [`folder`](#folder), [`auto_sync`](#auto_sync), [`action`](#action), [`EDITOR`](#EDITOR) and [`protocol`](#protocol) [`show_untagged`](#show_untagged). Use the following commands to set value: | 103 | Valid keys are [`user`](#user), [`token`](#token), [`folder`](#folder), [`auto_sync`](#auto_sync), [`action`](#action), [`EDITOR`](#EDITOR), [`protocol`](#protocol) and [`show_untagged`](#show_untagged). Use the following commands to set value: |
| 102 | ``` bash | 104 | ``` bash |
| 103 | # Set key with a given value | 105 | # Set key with a given value |
| 104 | gist config <key> <value> | 106 | gist config <key> <value> |