handle symlink when removing chezmoi
This commit is contained in:
parent
91526079fc
commit
3d28ac9260
5 changed files with 12 additions and 5 deletions
|
|
@ -6,11 +6,11 @@ Please ensure the that git is installed and you have an ssh key registered,
|
||||||
then execute the following command:
|
then execute the following command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sh -c "$(curl -fsLS get.chezmoi.io)" -- -b $HOME/.local/bin init --apply aleee-idk/mini-dots
|
sh -c "$(curl -fsLS get.chezmoi.io)" -- -b $HOME/.local/bin init --promptBool 'keep chezmoi?=false' --apply aleee-idk/mini-dots
|
||||||
```
|
```
|
||||||
|
|
||||||
To set up the dotfiles and then delete all traces of the manager, run:
|
To set up the dotfiles and then delete all traces of the manager, run:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply --one-shot aleee-idk/mini-dots
|
sh -c "$(curl -fsLS get.chezmoi.io)" -- -b $HOME/.local/bin init --promptBool 'keep chezmoi?=false' --one-shot aleee-idk/mini-dots
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -5,3 +5,4 @@
|
||||||
|
|
||||||
[data]
|
[data]
|
||||||
osid = {{ $osid | quote }}
|
osid = {{ $osid | quote }}
|
||||||
|
persistent = {{ promptBoolOnce . "persistent" "keep chezmoi?" true }}
|
||||||
|
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
**/original_*
|
|
||||||
.config/lazygit/state.yml
|
|
||||||
4
chezmoi/.chezmoiignore.tmpl
Normal file
4
chezmoi/.chezmoiignore.tmpl
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
{{- if .persistent }}
|
||||||
|
**/original_*
|
||||||
|
{{ end }}
|
||||||
|
.config/lazygit/state.yml
|
||||||
|
|
@ -1,2 +1,6 @@
|
||||||
|
{{ if .persistent }}
|
||||||
{{ .chezmoi.sourceDir }}/dot_config/nvim/original_lazy-lock.json
|
{{ .chezmoi.sourceDir }}/dot_config/nvim/original_lazy-lock.json
|
||||||
|
{{ else }}
|
||||||
|
{{ .chezmoi.homeDir }}/.config/nvim/original_lazy-lock.json
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue