Compare commits
2 commits
d3ef7b6bcd
...
9a6dab3467
Author | SHA1 | Date | |
---|---|---|---|
![]() |
9a6dab3467 | ||
![]() |
4bbf7c9d6b |
3 changed files with 9 additions and 4 deletions
|
@ -49,5 +49,10 @@ if ! [ -d ~/.cache/chezmoi/init_backup ]; then
|
||||||
safe_backup ~/.zshrc ~/.zsh_history ~/.zprofile ~/.bashrc ~/.bash_history ~/.profile
|
safe_backup ~/.zshrc ~/.zsh_history ~/.zprofile ~/.bashrc ~/.bash_history ~/.profile
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Brute force remove chezmoistate lock and restart init --apply
|
# Brute force remove chezmoistate lock and initialize chezmoi
|
||||||
exec sh -c 'rm ~/.config/chezmoi/chezmoistate.boltdb && CZ_EXTR=1 chezmoi init --apply'
|
# apply with CZ_EXTR=1 will run twice as some logic in chemzoiexternal
|
||||||
|
# requires tools that are downloaded with chezmoiexternal
|
||||||
|
exec sh -c 'rm ~/.config/chezmoi/chezmoistate.boltdb \
|
||||||
|
&& chezmoi init && chezmoi apply \
|
||||||
|
&& printf "apply with externals #1/2...\n" && CZ_EXTR=1 chezmoi apply \
|
||||||
|
&& printf "apply with externals #2/2...\n" && CZ_EXTR=1 chezmoi apply'
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
"refreshPeriod" $defaultRefresh
|
"refreshPeriod" $defaultRefresh
|
||||||
) -}}{{- end -}}{{- end -}}{{- end -}}
|
) -}}{{- end -}}{{- end -}}{{- end -}}
|
||||||
|
|
||||||
{{- if lookPath "jq" -}}
|
{{- if and (lookPath "jq") (lookPath "cargo-binstall") -}}
|
||||||
{{- $path_prefix = or (get (dict "linux" "./") .chezmoi.os) "" -}}
|
{{- $path_prefix = or (get (dict "linux" "./") .chezmoi.os) "" -}}
|
||||||
{{- with $app_name := "eza" -}}
|
{{- with $app_name := "eza" -}}
|
||||||
{{- with $bin_url := (output "sh" "-c" (
|
{{- with $bin_url := (output "sh" "-c" (
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#! /usr/bin/env bash
|
#! /usr/bin/env bash
|
||||||
|
|
||||||
printf '_home init\s'
|
printf '_src.posix init\n'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue