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
Copy file name to clipboardExpand all lines: tutorial.md
+9-15Lines changed: 9 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,13 @@
1
-
Note: Push, Pull and Register are disabled. Sync will be re-enabled using github gist.
2
-
3
1
# Tutorial
4
2
5
3
- Initialize Keep with `keep init`. This creates a `.keep` directory in your home folder.
6
-
- You are then asked to register.
7
-
- It asks for your Email because that is unique to you. It is just another username and thus you can input anything
8
-
unique to you.
9
-
- You can choose to not register this time and later start the process by using `keep register`.
10
-
- You can use Keep CLI without registering if you do not intend to use the server for storing or fetching your commands.
11
-
- It generates a 255 bit password for you. It is then stored inside your `~/.keep/.credentials` file.
12
4
- Start saving commands using `keep new`.
13
5
- Once you have saved couple of commands, start using `keep grep`.
14
6
- This is not exactly similar to `keep list | grep` as `keep grep` search is more powerful.
15
-
- Now it's time to store the commands on the server. Use `keep push`.
16
-
- If you have got another computer, install `keep` on it. Do `keep init` and skip registration. Copy your `~/.keep/.credentials` over to that computer in the same location.
7
+
- Use `keep github_token` to register a GitHub token for gist as backup. It is then stored inside your `~/.keep/.credentials` file.
8
+
- Now it's time to store the commands on github gists. Use `keep push`.
9
+
-**NOTE: keep creates a secret GitHub gist. They can still be accessed using the direct URL of the gist.**
10
+
- If you have got another computer, install `keep` on it. Do `keep init`. Copy your `~/.keep/.credentials` over to that computer in the same location, or follow `keep github_token`.
17
11
- Do `keep pull` to retrieve all the saved commands.
18
12
- Have fun !
19
13
@@ -27,7 +21,7 @@ Note: Push, Pull and Register are disabled. Sync will be re-enabled using github
27
21
<dd>This is used to search for saved commands.<br><br>Argument passed to <code>keep grep</code> is interpreted in two ways. First, it is interpreted as a regular expression and if it matches any command or description, then the search is displayed. If this fails, the argument is then splitted and the individule words of the argument are searched in the commands and the descriptions. If all the splits of the argument are found in a command or a discription, the result is displayed.</dd>
<dd>Initializes the CLI.<br><br>The CLI is supposed to be installed if there exists a <code>.keep</code> direcotry in the home directory. Once installed, this command is not supposed if the user intends to reset the local database of keep.</dd>
24
+
<dd>Initializes the CLI.<br><br>The CLI is supposed to be installed if there exists a <code>.keep</code> direcotry in the home directory. Once installed, this command is not supposed to be used unless the user intends to reset the local database of keep.</dd>
<dd>Shows the saved commands.<br><br>Keep uses tabulate library to show the result. If the command length is long, the table may look like in need of wrapping. But increasing the terminal width works for the best.</dd>
@@ -36,13 +30,13 @@ Note: Push, Pull and Register are disabled. Sync will be re-enabled using github
36
30
<dd>Saves new command locally.<br><br>If the command already exists, it updates the previously stored description.</dd>
<dd>Updates the local commands with remote.<br><br>Once registered, this command fetches your database saved on the remote and updates the local storage.</dd>
33
+
<dd>Updates the local commands with saved GitHub gist.<br><br>Once registered, this command fetches your database saved on the remote (GitHub gist) and updates the local storage.</dd>
<dd>Updates remote with local commands.<br><br>This command updates the remote database with the local storage. Consider using this command before storing a new command on some other computer without pulling the latest changes.</dd>
36
+
<dd>Updates GitHub gist with local commands.<br><br>This command updates the remote (GitHub gist) with the local storage. Consider using this command before storing a new command on some other computer without pulling the latest changes.</dd>
<dd>Deletes a command.<br><br>Input the exact command you have saved and this removes it from the local storage. If the user uses <code>push</code> after removing any command, the same will be overwritten on the remote.</dd>
0 commit comments