diff --git a/roles/home/zsh.nix b/roles/home/zsh.nix index 0d7410f..8f272b0 100644 --- a/roles/home/zsh.nix +++ b/roles/home/zsh.nix @@ -1,5 +1,8 @@ { pkgs, lib, ... }: +let + commitFunctions = pkgs.writeTextDir "bin" (builtins.readFile ./scripts/commits.sh); +in { home.packages = with pkgs; [ any-nix-shell ]; @@ -22,6 +25,8 @@ any-nix-shell zsh --info-right | source /dev/stdin source ${pkgs.nix-index}/etc/profile.d/command-not-found.sh ${if pkgs.stdenv.isDarwin then "export PATH=$PATH:/opt/homebrew/bin" else ""} + + source ${commitFunctions}/bin/commits.sh ''; }; }