Document hishtory import

This commit is contained in:
David Dworken 2022-11-09 15:12:23 -08:00
parent 89e904ffee
commit ed3c67daf9
No known key found for this signature in database

View File

@ -68,7 +68,6 @@ You can customize the columns that are displayed via `hishtory config-set displa
```
hishtory config-set displayed-columns CWD Command
```
</details>
<details>
@ -110,6 +109,11 @@ By default, hiSHtory relies on a backend for syncing. All data is end-to-end enc
But if you'd like to self-host the hishtory backend, you can! The backend is a simple go binary in `backend/server/server.go` that uses postgres to store data. Check out the [`docker-compose.yml`](https://github.com/ddworken/hishtory/blob/master/backend/server/docker-compose.yml) file for an example config to start a hiSHtory server and how to configure it.
</details>
<details>
<summary>Importing existing history</summary>
hiSHtory imports your existing shell history by default. If for some reason this didn't work (e.g. you had your shell history in a non-standard file), you can import it by piping it into `hishtory import` (e.g. `cat ~/.my_history | hishtory import`).
</details>
<details>
<summary>Uninstalling</summary>
If you'd like to uninstall hishtory, just run `hishtory uninstall`. Note that this deletes the SQLite DB storing your history, so consider running a `hishtory export` first.