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 source ~/.bashrc
``` ```
## Commands
## Backup | Command | Description | Dependencies |
To create an archive of all notes, run the following command: | --- | --- | --- |
```bash | | Create a new note file if it does not exist and open it in a text editor. | |
./histd.sh backup | `last` | Open the most recently created note. | |
``` | `backup` | Creates an archive with all notes. | `tar`, `xz` |
Required programs: `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` |
## Merge all notes | `help` | Show usage information. | |
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`.