-
Notifications
You must be signed in to change notification settings - Fork 0
/
chezmoi
49 lines (38 loc) · 1.25 KB
/
chezmoi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Docs
https://www.chezmoi.io/user-guide/frequently-asked-questions/usage/
https://fedoramagazine.org/take-back-your-dotfiles-with-chezmoi/
Install
From existing repo
sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply andmalc
Terms
Destination - managed directory, usually HOME
Target - file, directory, or link in the Destination.
Source directory - chemoi git repo location
Working tree - files in Source
Commands
init
initialize repo storage
not needed if specified existing GH repo during install
Within Home dir
add -
add file from home dir to source but not change the repo
if file already in source, updates it
cd
re-add - add modified files in home to source
edit-config
merge <fn>
managed show files managed
Within Source
apply - updates home dir from source
diff [--pager less]
shows changes to be made to home dir
diff is how local file will be updated by source
edit [--apply] - edit file in source
forget - remove file from source
status - what changes would be made by apply
update - pull changes from remote and apply
remove - remove file from home dir & source
Preview then apply changes from remote
chezmoi git pull -- --autostash --rebase && chezmoi diff
chezmoi apply
Repo stored at ~/.local/share/chezmoi