From cecbdb9ffbc8b358208490415df593e0be2ca191 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Thu, 18 Jan 2024 23:22:34 +0530 Subject: [PATCH] fortune cookies --- home/zsh.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/home/zsh.nix b/home/zsh.nix index 7520c15..a096579 100644 --- a/home/zsh.nix +++ b/home/zsh.nix @@ -1,4 +1,4 @@ -{ ... }: +{ lib, pkgs, ... }: { programs.zsh = { @@ -15,6 +15,10 @@ # cf. https://developer.1password.com/docs/ssh/get-started#step-4-configure-your-ssh-or-git-client export SSH_AUTH_SOCK=~/Library/Group\ Containers/2BUA8C4S2C.com.1password/t/agent.sock ''; + + initExtra = '' + ${lib.getExe pkgs.fortune} | ${lib.getExe pkgs.charasay} say -r + ''; }; programs.nix-index.enableZshIntegration = true;