Add a table with all commands

This commit is contained in:
Ivan R. 2023-11-06 00:24:10 +05:00
parent 2a848ea904
commit c47921b2f9
No known key found for this signature in database
GPG key ID: 56C7BAAE859B302C

View file

@ -48,27 +48,13 @@ Don't forget to start a new session or execute the following command:
source ~/.bashrc
```
## Commands
## Backup
To create an archive of all notes, run the following command:
```bash
./histd.sh backup
```
Required programs: `tar`, `xz`.
## Merge all notes
This command concatenates all files and prefixes each with the filename.
```bash
./histd.sh merge
```
## List all notes
```bash
./histd.sh list
# /home/user/.local/share/histd
# └── 2022
# └── 08
# ├── 18.md
# └── 19.md
```
Required programs: `tree`.
| Command | Description | Dependencies |
| --- | --- | --- |
| | Create a new note file if it does not exist and open it in a text editor. | |
| `last` | Open the most recently created note. | |
| `backup` | Creates an archive with all notes. | `tar`, `xz` |
| `merge` | Combine all notes into one file. Each note is preceded by a file name. | |
| `list` | Displays a tree of all notes. | `tree` |
| `help` | Show usage information. | |