Skip to content

managed [path...]

List all managed entries in the destination directory under all paths in alphabetical order. When no paths are supplied, list all managed entries in the destination directory in alphabetical order.

Common flags

-x, --exclude types

Exclude target state entries of specific types. The default is none.

Types can be explicitly included with the --include flag.

Example

--exclude=scripts will cause the command to not run scripts and --exclude=encrypted will exclude encrypted files.

-f, --format json|yaml

Set the output format, json by default.

-i, --include types

Include target state entries of specific types. The default is all.

Types can be explicitly excluded with the --exclude flag.

Example

--include=files specifies all files.

-p, --path-style style

Print paths in the given style. The default is relative.

Style Description
absolute Absolute paths in the destination directory
relative Relative paths to the destination directory
source-absolute Absolute paths in the source tree directory
source-relative Relative paths to the source tree directory
all All path styles, indexed by relative

-t, --tree

Print paths as a tree instead of a list.

Examples

$ chezmoi managed
$ chezmoi managed --include=files
$ chezmoi managed --include=files,symlinks
$ chezmoi managed -i dirs
$ chezmoi managed -i dirs,files
$ chezmoi managed -i files ~/.config
$ chezmoi managed --exclude=encrypted --path-style=source-relative