From a718e133ff107a5113cfde66e91cb548f91f84c0 Mon Sep 17 00:00:00 2001 From: Yuan Chiu Date: Mon, 2 Jun 2025 03:08:18 +0800 Subject: [PATCH] add auto install tmux --- .chezmoidata/packages.toml | 5 +++++ .chezmoiscripts/run_onchange_after_install.sh.tmpl | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/.chezmoidata/packages.toml b/.chezmoidata/packages.toml index 49be456..32ac51d 100644 --- a/.chezmoidata/packages.toml +++ b/.chezmoidata/packages.toml @@ -24,6 +24,7 @@ brews = [ 'java', 'jstkdng/programs/ueberzugpp', 'macism', + 'tmux', 'htop', 'bmon', ] @@ -50,6 +51,7 @@ apt = [ 'ueberzug', 'ripgrep', 'tree-sitter-cli', + 'tmux', 'htop', 'bmon', ] @@ -73,6 +75,7 @@ apt = [ 'git', 'gcc', 'ripgrep', + 'tmux', 'htop', 'bmon', ] @@ -113,6 +116,7 @@ pacman = [ 'neovim', 'ripgrep', 'tree-sitter', + 'tmux', 'htop', 'bmon', ] @@ -169,6 +173,7 @@ pacman = [ 'tree-sitter', 'tree-sitter-bash', 'tree-sitter-cli', + 'tmux', 'htop', 'bmon', ] diff --git a/.chezmoiscripts/run_onchange_after_install.sh.tmpl b/.chezmoiscripts/run_onchange_after_install.sh.tmpl index 8dcd5b5..dfdb5e5 100644 --- a/.chezmoiscripts/run_onchange_after_install.sh.tmpl +++ b/.chezmoiscripts/run_onchange_after_install.sh.tmpl @@ -9,6 +9,10 @@ fi if command -v nvim &> /dev/null; then nvim --headless "+Lazy! update" +qa fi +if command -v tmux &> /dev/null; then + ~/.tmux/plugins/tpm/bin/install_plugins + ~/.tmux/plugins/tpm/bin/update_plugins all +fi {{ if and (not .noGUI) (hasKey .chezmoi.osRelease "id") }} {{ if and (eq .chezmoi.os "linux") (stat (print .chezmoi.homeDir "/.winscp")) }}