Add a table with all commands
This commit is contained in:
parent
2a848ea904
commit
c47921b2f9
1 changed files with 9 additions and 23 deletions
32
readme.md
32
readme.md
|
@ -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`.
|
|
||||||
|
|
Loading…
Reference in a new issue