Skip to content

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.db inside it and merges both ways. If you pass a .db file 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 example nano, notepad, "code --wait". Use --editor clear to 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
$ 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 Configured

Set the editor

cwm config
$ cwm config --editor "code --wait"
Set preferred editor: code --wait

Set a copy bank folder

cwm config
$ cwm config -c D:/shared/cwm
Set copy bank path: D:/shared/cwm

Unknown key

cwm config
$ cwm config nokey x
Unknown setting 'nokey'. Use: cwm config editor <name>, or the flags --editor, -c/--copy-bank, --change-history-file, --clear.