From 432fb060ac4e6770eefb028ef221c08b44a92085 Mon Sep 17 00:00:00 2001 From: Zynh Ludwig <zynh0722@gmail.com> Date: Sat, 8 Feb 2025 16:56:20 -0800 Subject: [PATCH] fish: concatStringsSep --- home/modules/fish.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/home/modules/fish.nix b/home/modules/fish.nix index 3509197..3113b68 100644 --- a/home/modules/fish.nix +++ b/home/modules/fish.nix @@ -42,10 +42,11 @@ in shellAbbrs = lib.mkIf (!macos) { copy = "xclip -sel clip"; }; - interactiveShellInit = - builtins.readFile "${inputs.fish_theme}/fish_prompt.fish" + "\n" + - builtins.readFile ../fish/config.fish + "\n" + - "${lib.getExe pkgs.any-nix-shell} fish --info-right | source"; + interactiveShellInit = lib.concatStringsSep "\n" [ + (builtins.readFile "${inputs.fish_theme}/fish_prompt.fish") + (builtins.readFile ../fish/config.fish) + "${lib.getExe pkgs.any-nix-shell} fish --info-right | source" + ]; }; home.packages = with pkgs; [