docs / config
cwm config
Show or change settings: editor, copy bank folder, history file.
$ cwm config [key value] [flags] How it works
- With no arguments it prints the current settings.
- The copy bank is a folder. CWM keeps a second
cwm.dbinside it and merges both ways. If you pass a.dbfile path, CWM uses its folder. - Do not point two PCs at a folder that a sync service (OneDrive, Dropbox) copies while CWM writes. SQLite files can be damaged by that.
- Unknown keys are an error. They are not stored silently.
Flags
- --editor <app>
- Editor for
save -s. For examplenano,notepad,"code --wait". Use--editor clearto reset. - -c, --copy-bank <folder>
- Shared folder for two-way sync.
- --change-history-file <path>
- Use this file as your shell history. The name must contain
history. - --change-history-dir <path>
- Alias of
--change-history-file. - --clear
- Reset all settings to auto-detect.
Examples
Show settings
$ cwm config Configuration Source
Path: C:\Users\you\.cwm\cwm.db
General Settings
History File: Auto-Detect
Preferred Editor: Auto-Detect (OS default)
Copy Bank Path: Not ConfiguredSet the editor
$ cwm config --editor "code --wait" Set preferred editor: code --waitSet a copy bank folder
$ cwm config -c D:/shared/cwm Set copy bank path: D:/shared/cwmUnknown key
$ cwm config nokey x Unknown setting 'nokey'. Use: cwm config editor <name>, or the flags --editor, -c/--copy-bank, --change-history-file, --clear.