Document the init command in README

This commit is contained in:
Mohammad Fares 2018-10-01 12:30:08 +03:00
parent 7afc17ba6d
commit 98859ea2f0
1 changed files with 18 additions and 1 deletions

View File

@ -30,6 +30,7 @@ Built while listening to [Nyan Cat](https://www.youtube.com/watch?v=QH2-TGUlwu4)
* [Getting Started](#getting-started) * [Getting Started](#getting-started)
* [Compression](#compression) * [Compression](#compression)
* [Usage](#usage) * [Usage](#usage)
* [Init](#init)
* [Config](#config) * [Config](#config)
* [Record](#record) * [Record](#record)
* [Play](#play) * [Play](#play)
@ -134,6 +135,14 @@ GIF compression is not implemented yet. For now we recommend [https://gifcompres
terminalizer <command> [options] terminalizer <command> [options]
``` ```
## Init
> Create a global config directory
```bash
terminalizer init
```
## Config ## Config
> Generate a config file in the current directory > Generate a config file in the current directory
@ -213,7 +222,7 @@ terminalizer generate <recordingFile>
# Configurations # Configurations
The default `config.yml` file is stored in the root directory of the project. Execute the below command to copy it to your current directory. The default `config.yml` file is stored under the root directory of the project. Execute the below command to copy it to your current directory.
> Use any editor to edit the copied `config.yml`, then use the `-c` option to override the default one. > Use any editor to edit the copied `config.yml`, then use the `-c` option to override the default one.
@ -221,6 +230,14 @@ The default `config.yml` file is stored in the root directory of the project. Ex
terminalizer config terminalizer config
``` ```
> RECOMMENDED, use the `init` command to create a global config file to be used instead of the default one.
```bash
terminalizer init
```
For Linux and MacOS, the created directory is located under the home directory `~/.terminalizer`. For Windows, it is located under the `AppData`.
## Recording ## Recording
* `command`: Specify a command to be executed like `/bin/bash -l`, `ls`, or any other command. The default is `bash` for `Linux` or `powershell.exe` for `Windows`. * `command`: Specify a command to be executed like `/bin/bash -l`, `ls`, or any other command. The default is `bash` for `Linux` or `powershell.exe` for `Windows`.