2019-11-30 18:59:53 +01:00
# config
Configuration management.
Syntax: `config {flags}`
### Flags
--load < file path shape >
load the config from the path give
--set < any shape >
set a value in the config, eg) --set [key value]
--set_into < member shape >
sets a variable from values in the pipeline
--get < any shape >
get a value from the config
--remove < any shape >
remove a value from the config
--clear
clear the config
--path
return the path to the config file
### Variables
2020-04-24 19:28:38 +02:00
| Variable | Type | Description |
| --------------- | ---------------------- | -------------------------------------------------------------- |
| path | table of strings | PATH to use to find binaries |
| env | row | the environment variables to pass to external commands |
| ctrlc_exit | boolean | whether or not to exit Nu after multiple ctrl-c presses |
| table_mode | "light" or other | enable lightweight or normal tables |
| edit_mode | "vi" or "emacs" | changes line editing to "vi" or "emacs" mode |
| key_timeout | integer (milliseconds) | vi: the delay to wait for a longer key sequence after ESC |
2020-05-19 00:27:08 +02:00
| history_size | integer | maximum entries that will be stored in history (100 default) |
2020-04-24 19:28:38 +02:00
| completion_mode | "circular" or "list" | changes completion type to "circular" (default) or "list" mode |
2020-05-19 03:21:35 +02:00
| no_auto_pivot | boolean | whether or not to automatically pivot single-row results |
2019-11-30 18:59:53 +01:00
## Examples
```shell
> config --set [table_mode "light"]
```
2019-12-15 13:56:26 +01:00
A more detailed description on how to use this command to configure Nu shell can be found in the configuration chapter of [Nu Book ](https://www.nushell.sh/book/en/configuration.html ).