From 2b9b4d4a201a60d58c178db888b35e17501112aa Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Tue, 1 Oct 2024 12:52:08 +0200 Subject: [PATCH] Add Powerline fonts installation using external repo and run_onchange script --- .chezmoiexternal.toml | 4 ++++ run_onchange_install-powerline-fonts.sh | 9 +++++++++ 2 files changed, 13 insertions(+) create mode 100755 run_onchange_install-powerline-fonts.sh diff --git a/.chezmoiexternal.toml b/.chezmoiexternal.toml index 87bf361..2b2c0c8 100644 --- a/.chezmoiexternal.toml +++ b/.chezmoiexternal.toml @@ -18,3 +18,7 @@ type = "git-repo" url = "https://github.com/AstroNvim/template.git" refreshPeriod = "168h" +[".powerline-fonts"] + type = "git-repo" + url = "https://github.com/powerline/fonts.git" + refreshPeriod = "168h" diff --git a/run_onchange_install-powerline-fonts.sh b/run_onchange_install-powerline-fonts.sh new file mode 100755 index 0000000..ac81a4e --- /dev/null +++ b/run_onchange_install-powerline-fonts.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# Führe das install.sh Skript aus dem geklonten Repository aus +if [ -d "$HOME/.powerline-fonts" ]; then + cd "$HOME/.powerline-fonts" + ./install.sh +else + echo "Powerline Fonts Repository wurde nicht gefunden." +fi