use .hosttype for conditions

This commit is contained in:
inkch
2024-01-17 11:18:44 +09:00
parent b86adbe790
commit dcfb6648d1
5 changed files with 8 additions and 8 deletions

View File

@ -58,7 +58,7 @@ vim.cmd(':ca mkdir. call mkdir(expand("%:p:h"), "p")')
vim.cmd(':ca W! w !sudo -A tee %')
{{- end }}
{{- if (or (eq .chezmoi.hostname "arch") (eq .chezmoi.hostname "buzz")) }}
{{- if (and (eq .hosttype "desktop" "laptop") (eq .chezmoi.os "linux")) }}
vim.cmd([[ autocmd InsertLeave * call system("fcitx5-remote -c") ]])
{{- end }}