All apps/chezmoi

chezmoi

chezmoi

Manage your dotfiles across multiple diverse machines, securely.

Runs as chezmoi|macOS, Linux, Windows|www.chezmoi.io

Command form

ai-draft · 6 tasks · 22 fields

Apply and inspect your dotfiles. Adding, editing, secrets, encryption and state commands are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui chezmoi

chezmoi apply

Apply dotfiles

Update the destination directory to match the target state.

Apply dotfilesExample values, fixed in this page — nothing here reaches a terminal
Basic
Targets
any
TasksEach one presets the form for one job
Apply everything
target
ParametersOnly these flags are editable in the form
Targets
Limit to these destination paths; empty means everything managed.
path · positional 0 · repeatable
Include types
Entry types to include, comma separated.
string
--include-i
Exclude types
Entry types to exclude, comma separated.
string
--exclude-x
Recurse
Recurse into subdirectories.
boolean
--recursive-r
Recreate config
Recreate config file from template.
boolean
--init

chezmoi diff

Show differences

Print the diff between the target state and the destination state.

Show differencesExample values, fixed in this page — nothing here reaches a terminal
Basic
Targets
any
TasksEach one presets the form for one job
Diff everything
target
Reverse diff
targetreverse
ParametersOnly these flags are editable in the form
Targets
Limit to these destination paths; empty means everything managed.
path · positional 0 · repeatable
Include types
Entry types to include, comma separated.
string
--include-i
Exclude types
Entry types to exclude, comma separated.
string
--exclude-x
Recurse
Recurse into subdirectories.
boolean
--recursive-r
Reverse
Reverse the direction of the diff.
boolean
--reverse
Builtin diff
Use the builtin diff.
boolean
--use-builtin-diff

chezmoi status

Status

Show the status of targets.

StatusExample values, fixed in this page — nothing here reaches a terminal
Basic
Targets
any
TasksEach one presets the form for one job
Status of everything
target
ParametersOnly these flags are editable in the form
Targets
Limit to these destination paths; empty means everything managed.
path · positional 0 · repeatable
Include types
Entry types to include, comma separated.
string
--include-i
Exclude types
Entry types to exclude, comma separated.
string
--exclude-x
Recurse
Recurse into subdirectories.
boolean
--recursive-r

chezmoi init

Initialise

Set up the source directory from a dotfiles repo. May also apply when --apply is set.

InitialiseExample values, fixed in this page — nothing here reaches a terminal
Basic
Repository*
string
Branch
string
Use SSH
--ssh
TasksEach one presets the form for one job
Clone only
sourcebranchssh
Clone and apply
sourceapplybranchssh
ParametersOnly these flags are editable in the form
Repository
Repo URL or GitHub user name.
string · positional 0
Apply afterwards
Update destination directory.
boolean
--apply-a
Branch
Set initial branch to checkout.
string
--branch
Clone depth
Create a shallow clone.
integer
--depth-d
Use SSH
Use ssh instead of https when guessing dotfile repo URL.
boolean
--ssh
Guess repo URL
Guess the repo URL.
boolean
--guess-repo-url-g
One-shot
Run in one-shot mode.
boolean
--one-shot
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed chezmoi against its version. A form that does not match your version is not offered.