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
|
||||
```
|
||||
|
||||
## 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. | |
|
||||
|
|
Loading…
Reference in a new issue