From da1ea82a5d03976abff6f3de9649a6e46c6af685 Mon Sep 17 00:00:00 2001 From: Yuan Chiu Date: Fri, 25 Apr 2025 03:39:35 +0800 Subject: [PATCH] =?UTF-8?q?refactor=20iterm2:=20=E8=AA=BF=E6=95=B4?= =?UTF-8?q?=E6=88=90=E5=8F=AA=E5=9F=B7=E8=A1=8C=E4=B8=80=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .chezmoiscripts/run_once_after_apply.sh.tmpl | 6 ++++++ .chezmoiscripts/run_onchange_after_install.sh.tmpl | 5 ----- 2 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 .chezmoiscripts/run_once_after_apply.sh.tmpl diff --git a/.chezmoiscripts/run_once_after_apply.sh.tmpl b/.chezmoiscripts/run_once_after_apply.sh.tmpl new file mode 100644 index 0000000..9ff138b --- /dev/null +++ b/.chezmoiscripts/run_once_after_apply.sh.tmpl @@ -0,0 +1,6 @@ +#!/bin/sh + +{{ if eq .chezmoi.os "darwin" -}} +defaults write com.googlecode.iterm2 PrefsCustomFolder -string "~/.config/iterm2" +defaults write com.googlecode.iterm2 LoadPrefsFromCustomFolder -bool true +{{ end -}} \ No newline at end of file diff --git a/.chezmoiscripts/run_onchange_after_install.sh.tmpl b/.chezmoiscripts/run_onchange_after_install.sh.tmpl index 47075d2..950b1be 100644 --- a/.chezmoiscripts/run_onchange_after_install.sh.tmpl +++ b/.chezmoiscripts/run_onchange_after_install.sh.tmpl @@ -2,8 +2,3 @@ zsh -i -c 'zinit update' vim +PlugInstall +qall - -{{ if eq .chezmoi.os "darwin" -}} -defaults write com.googlecode.iterm2 PrefsCustomFolder -string "~/.config/iterm2" -defaults write com.googlecode.iterm2 LoadPrefsFromCustomFolder -bool true -{{ end -}} \ No newline at end of file