From 9c2da26373b5d5062d2c5fa7e897e661e36ac726 Mon Sep 17 00:00:00 2001 From: Luis Guilherme Coelho Date: Wed, 13 Nov 2024 03:31:10 -0300 Subject: [PATCH] packages: text-editors: Simplify the plugin loader --- radix/packages/text-editors.scm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/radix/packages/text-editors.scm b/radix/packages/text-editors.scm index 7f817e7..14c7b1b 100644 --- a/radix/packages/text-editors.scm +++ b/radix/packages/text-editors.scm @@ -66,12 +66,9 @@ (copy-file #$(plain-file "plugin-loader.kak" "\ eval %sh{ + IFS=: for dir in $GUIX_KAK_PLUGINS_PATH; do - for plugin in $(ls $dir); do - for file in $(ls $dir/$plugin); do - echo source $dir/$plugin/$file - done - done + printf 'source %s\n' $dir/*/* done }") (string-append tools "/plugin-loader.kak"))))))