You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that the following instructions only install gister itself.
128
-
You need to install its dependencies mentioned before yourself.
129
-
130
-
git clone https://github.com/weakish/gister.git
131
-
cd gister
132
-
make install
133
-
134
-
- Edit `config.mk` if you do not want to install it to `/usr/local`.
135
-
- Compatible with both GNU and BSD make.
136
-
137
-
To uninstall:
138
-
139
-
```sh
140
-
; cd gister
141
-
; make uninstall
142
-
```
143
-
144
-
You can also install/uninstall gister via [basher].
145
-
146
-
[basher]: https://github.com/basherpm/basher
147
-
148
-
Usage
149
-
-----
150
-
151
-
### init
152
-
153
-
For the first time, you need to run `gister init` to associate your GitHub account and configure the directory to store local copies of your gists.
154
-
155
-
After that, you may run `gister sync` to fetch all your gists (created and starred) to local.
156
-
157
-
Warn: `sync` can only fetch up to 10 million gists for you. If you have more than 10 million gists, you need to modify the source of `gister` to lift the limit.
158
-
159
-
### Configuration
160
-
161
-
`GISTER_USE_HTTPS`: If you need to use https for some reason, set the env var `GISTER_USE_HTTPS`, but please note this isn't necessarily more secure than ssh, it's just a different option in case your network blocks all traffic other than http/s.
162
-
163
-
`GISTER_AUTO_COMMIT`: If you'd like the `sync` command to automatically commit any local changes you've made before pulling and pushing to gist.github.com, set the `GISTER_AUTO_COMMIT` env var to anything.
164
-
165
-
### publish
166
-
167
-
Whenever you want to publish a gist, just use
168
-
169
-
gister description file.txt ...
170
-
171
-
This will create the gist with the provided description, clone the gist repo, and put the gistid to clipborad.
172
-
173
-
Note: you must provide gist description, otherwise `gister` will fail.
174
-
175
-
Hint: `gister` will pass all arguments to gist as `gist -c -o -d description ...`, so you can use other options that gist understands, e.g. `gister description -P` will work.
176
-
177
-
If you've edited your gists at `gist.github.com` or local machine, without pull/push changesets, you can sync all your gists via `gister sync`.
178
-
179
-
If you've deleted your gists at `gist.github.com`, after `gister sync`, the directories of deleted gists at your local machine will be marked with a prefix `_`.
180
-
181
-
### search
182
-
183
-
Search all of your gists:
184
-
185
-
gister search regexp
186
-
187
-
If `codesearch` is installed, `regexp` is RE2 (nearly PCRE).
188
-
Otherwise it is ERE, a.k.a `grep -E`.
189
-
190
-
### export
191
-
192
-
Export a gist (available at local) to a git repository,
0 commit comments