Skip to content

Commit

Permalink
Improve how to for tracking externally modified files
Browse files Browse the repository at this point in the history
  • Loading branch information
awilts authored and twpayne committed Apr 28, 2020
1 parent 5752e26 commit 09b38ce
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions cmd/docs.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions docs/HOWTO.md
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,11 @@ Tell chezmoi to ignore this file:
Tell chezmoi that `~/.config/Code/User/settings.json` should be a symlink to the
file in your source directory:

mkdir -p $(chezmoi source-path)/dot_config/Code/User
echo -n "{{ .chezmoi.sourceDir }}/settings.json" > $(chezmoi source-path)/dot_config/Code/User/symlink_settings.json.tmpl
mkdir -p $(chezmoi source-path)/private_dot_config/private_Code/User
echo -n "{{ .chezmoi.sourceDir }}/settings.json" > $(chezmoi source-path)/private_dot_config/private_Code/User/symlink_settings.json.tmpl

The prefix `private_` is used because the `~/.config` and `~/.config/Code`
directories are private by default.

Apply the changes:

Expand Down

0 comments on commit 09b38ce

Please sign in to comment.