Skip to content

Latest commit

 

History

History
76 lines (48 loc) · 2.38 KB

configuration.md

File metadata and controls

76 lines (48 loc) · 2.38 KB

Configuration

By default Kure will read the file at $HOME/.kure/kure.yaml or the one specified in the KURE_CONFIG environment variable in case it is set. To change the file used, simply change the environment variable.

Paths inside it MUST be absolute.

Formats supported: JSON, TOML, YAML. Samples.

Helpful commands

  1. kure config -> Read current file
  2. kure config create -> Create a new file
  3. kure config edit -> Edit current file

Keys


Clipboard

Timeout

Time until the clipboard is cleared after a record has been copied to it. Set to "0s" or leave blank for no timeout.


Database

Path

Must be absolute.

Path to the database file (if it doesn't exist, it will be created).


Editor

The command of the editor you would like to use. If no editor is set in the configuration file, Kure will look for it in the $EDITOR and $VISUAL environment variables, if still nothing is found, it will try using vim by default.


Keyfile

Path

Must be absolute.

The path to the key file may be specified or not, in case it's not, the user will be asked for it everytime he wants to access the database, in the other case the user has to input the password only.


Session

Prefix

Text that precedes your commands.

Scripts

Scripts can be used to run a sequence of commands inside sessions. Each one of them has an alias and may contain one-based indexing arguments ($1, $2, ..., $n) to be replaced by the arguments passed when executing the script. For example, having the script list: ls $1 -s we execute it by typing list sample, that is <alias> <$1>.

Aliases must not contain spaces and arguments containing spaces must be enclosed by double quotes.

Timeout

Time until the session is closed. Set to "0s" or leave blank for no timeout.