You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 244f4d0
Browse filesBrowse the repository at this point in the historyBrowse files
Set `DISPATCH_CONFIG` to an absolute file path to use a different config file, for example to keep separate work and personal profiles. `config path`, `config get`/`set`/`edit`, and `doctor` all follow the override. A relative or UNC value is ignored and the default location is used.
670
+
Set `DISPATCH_CONFIG` to an absolute file path to use a different config file, for example to keep separate work and personal profiles. `config path`, `config get`/`set`/`edit`/`export`/`import`, and `doctor` all follow the override. A relative or UNC value is ignored and the default location is used.
671
671
672
672
### From the command line
673
673
@@ -681,9 +681,11 @@ dispatch config set launch_mode window
681
681
dispatch config unset launch_mode # reset one setting to its default
682
682
dispatch config edit # open the config file in your editor
683
683
dispatch config path # print the config file path
684
+
dispatch config export --out dispatch-config.json
685
+
dispatch config import --in dispatch-config.json
684
686
```
685
687
686
-
`set` validates the value and writes through the same save path the TUI uses, so migrations and checks still run. `unset` resets one key to its default through that same save path. Unknown keys and invalid values exit non-zero with a clear message. The keys match the option names in the table below. Set `auto_refresh_seconds` to `default` to clear it back to unset. `edit` opens the file in `$VISUAL` or `$EDITOR` (falling back to a platform default) and re-checks it after you save, which is handy for list and map settings that `set` does not cover.
688
+
`set` validates the value and writes through the same save path the TUI uses, so migrations and checks still run. `unset` resets one key to its default through that same save path. `export` prints the full JSON config to stdout, or writes it to `--out <file>`. `import` reads JSON from stdin, or from `--in <file>`, then saves it through the normal config path. Unknown keys and invalid values exit non-zero with a clear message. The keys match the option names in the table below. Set `auto_refresh_seconds` to `default` to clear it back to unset. `edit` opens the file in `$VISUAL` or `$EDITOR` (falling back to a platform default) and re-checks it after you save, which is handy for list and map settings that `set` does not cover.
local -a commands flags configsubs shells aliases configkeys openflags newflags
460
460
local bin=${words[1]}
461
461
commands=(help version open new doctor update completion stats search tags notes views aliases alias compare prune tag watch config export info path man)
462
-
configsubs=(list get set unset edit path)
462
+
configsubs=(list get set unset edit path export import)
0 commit comments