From 83e6d92502f0aca8a9a2509b861a46874bdc4a4a Mon Sep 17 00:00:00 2001 From: Yuan Chiu Date: Fri, 25 Apr 2025 09:22:32 +0800 Subject: [PATCH] =?UTF-8?q?fix=20winscp=20script:=20=E7=AC=AC=E4=B8=80?= =?UTF-8?q?=E6=AC=A1=E5=95=9F=E5=8B=95winscp=E6=9C=83=E5=88=A4=E5=AE=9A?= =?UTF-8?q?=E5=A6=82=E6=9E=9C=E9=80=99=E5=80=8B=E8=B3=87=E6=96=99=E5=A4=BE?= =?UTF-8?q?=E5=B7=B2=E7=B6=93=E5=AD=98=E5=9C=A8=EF=BC=8C=E5=B0=B1=E4=B8=8D?= =?UTF-8?q?=E5=86=8D=E8=A4=87=E8=A3=BD=E5=9F=B7=E8=A1=8C=E6=AA=94=EF=BC=8C?= =?UTF-8?q?=E5=B0=8E=E8=87=B4=E5=85=88=E8=B7=91=E9=81=8E=E8=88=8A=E7=89=88?= =?UTF-8?q?=E6=AD=A4=E8=85=B3=E6=9C=AC=E5=BE=8C=EF=BC=8Cwinscp=E6=B0=B8?= =?UTF-8?q?=E9=81=A0=E4=B8=8D=E8=83=BD=E5=9F=B7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .chezmoiscripts/run_onchange_after_install.sh.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.chezmoiscripts/run_onchange_after_install.sh.tmpl b/.chezmoiscripts/run_onchange_after_install.sh.tmpl index 27d3082..0d48f22 100644 --- a/.chezmoiscripts/run_onchange_after_install.sh.tmpl +++ b/.chezmoiscripts/run_onchange_after_install.sh.tmpl @@ -3,7 +3,7 @@ zsh -i -c 'zinit update' vim +PlugInstall +qall -{{ if eq .chezmoi.os "linux" -}} +{{ if and (eq .chezmoi.os "linux") (not (stat (print .chezmoi.homeDir "/.winscp"))) -}} {{ if or (eq .chezmoi.osRelease.id "manjaro") (eq .chezmoi.osRelease.id "arch") -}} mkdir -p ~/.winscp mkdir -p ~/.winscp/drive_c/users/{{ .chezmoi.username }}/.ssh