From 55459b25159da80d7093aae5847a352ea463d715 Mon Sep 17 00:00:00 2001 From: Hilton Chain Date: Thu, 19 Feb 2026 22:02:06 +0800 Subject: [PATCH] services: shellutils: Run in interactive shell only. * modules/rosenthal/services/shellutils.scm (%home-atuin-fish) (%home-direnv-fish, %home-zoxide-fish): Run in interactive shell. --- modules/rosenthal/services/shellutils.scm | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/modules/rosenthal/services/shellutils.scm b/modules/rosenthal/services/shellutils.scm index 29522bd..f35221c 100644 --- a/modules/rosenthal/services/shellutils.scm +++ b/modules/rosenthal/services/shellutils.scm @@ -54,8 +54,11 @@ (atuin) (home-fish-extension (config - (list (mixed-text-file "atuin.fish" - atuin "/bin/atuin init fish | source\n")))))) + (list (mixed-text-file "atuin.fish" "\ +status is-interactive +and begin + " atuin "/bin/atuin init fish | source +end\n")))))) (define home-fish-plugin-atuin-service-type (service-type @@ -88,8 +91,11 @@ (direnv) (home-fish-extension (config - (list (mixed-text-file "direnv.fish" - direnv "/bin/direnv hook fish | source\n")))))) + (list (mixed-text-file "direnv.fish" "\ +status is-interactive +and begin + " direnv "/bin/direnv hook fish | source +end\n")))))) (define home-fish-plugin-direnv-service-type (service-type @@ -122,8 +128,11 @@ (zoxide) (home-fish-extension (config - (list (mixed-text-file "zoxide.fish" - zoxide "/bin/zoxide init --cmd cd fish | source\n")))))) + (list (mixed-text-file "zoxide.fish" "\ +status is-interactive +and begin + " zoxide "/bin/zoxide init --cmd cd fish | source +end\n")))))) (define home-fish-plugin-zoxide-service-type (service-type