Update .config/packages/arch-packages.fish
This commit is contained in:
parent
6efc9a0148
commit
2dddd4094c
1 changed files with 5 additions and 1 deletions
|
@ -5,8 +5,10 @@
|
||||||
# {{ include (joinPath "dot_config/packages/" (base .)) | sha256sum }}
|
# {{ include (joinPath "dot_config/packages/" (base .)) | sha256sum }}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
|
cd "$HOME/.config/packages/"
|
||||||
|
|
||||||
set file (\
|
set file (\
|
||||||
find . -type f -iname "arch*" -print0\
|
find . -type f -iname "arch?*" -print0\
|
||||||
| xargs -0 ls -tr\
|
| xargs -0 ls -tr\
|
||||||
| tail -n 1\
|
| tail -n 1\
|
||||||
| string sub -s 3\
|
| string sub -s 3\
|
||||||
|
@ -25,4 +27,6 @@ if ! test "{{ .chezmoi.hostname }}" = "$file"
|
||||||
end
|
end
|
||||||
|
|
||||||
yay -Qeq >{{ joinPath .chezmoi.sourceDir "dot_config/packages" .chezmoi.hostname }}
|
yay -Qeq >{{ joinPath .chezmoi.sourceDir "dot_config/packages" .chezmoi.hostname }}
|
||||||
|
|
||||||
|
cd "$HOME"
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
Loading…
Reference in a new issue