fix chazmoi noGUI

This commit is contained in:
Yuan Chiu 2025-05-02 13:20:35 +08:00
parent 30b4047b48
commit 12373b8795
2 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,7 @@ dconf.ini
.local/share/konsole
dconf.ini
.gvimrc
.chezmoiscripts/run_onchange_linux-dconf-load.sh.tmpl
{{/* ---- 有視窗應用程式 -------------------------------------------------- */ -}}
{{ else }}
@ -24,6 +25,7 @@ dconf.ini
{{ end }}
{{ if ne .chezmoi.os "linux" }}
.chezmoiscripts/run_onchange_before_linux-install-packages.sh.tmpl
.chezmoiscripts/run_onchange_linux-dconf-load.sh.tmpl
.local/share/konsole
.config/konsolerc
{{ end }}

View File

@ -4,6 +4,7 @@ zsh -i -c 'zinit update'
vim +PlugInstall +qall
nvim --headless "+Lazy! update" +qa
{{ if not .noGUI }}
{{ if and (eq .chezmoi.os "linux") (stat (print .chezmoi.homeDir "/.winscp")) }}
{{ if or (eq .chezmoi.osRelease.id "manjaro") (eq .chezmoi.osRelease.id "arch") }}
mkdir -p ~/.winscp
@ -20,3 +21,4 @@ ln -s ~/.config/filezilla/sitemanager.xml ~/.winscp/drive_c/users/{{ .chezmoi.us
{{ end }}
{{ end }}
{{ end }}
{{ end }}