docs / setup
cwm setup
Install the small shell function that lets cwm get <name> -x run in your current shell.
$ cwm setup [--force] How it works
- CWM adds one managed block to your profile (Bash, Zsh or PowerShell). Only that block is added or replaced.
- A backup of your profile is saved once as
<profile>.cwm.bakbefore the first change. - The function runs inside your shell, so
cdand environment changes from a saved command stay after it finishes. - History options of your shell are not changed.
Flags
- --force
- Pick the shell from a menu when auto-detection is wrong.
Examples
Detect the shell and install the block
$ cwm setup Detected bash.
Added the CWM block to C:\Users\you\.bashrc
Backup of the original profile: C:\Users\you\.bashrc.cwm.bak
Activate it now with: source ~/.bashrc