Skyler Grey | a7884fe | 2023-02-19 22:57:46 +0000 | [diff] [blame] | 1 | { pkgs, mommy, ... }: |
2 | let | ||||
3 | mommy-script = pkgs.writeScript "mommy" (builtins.readFile "${mommy}/shell-mommy.sh"); | ||||
4 | in | ||||
5 | { | ||||
6 | home.programs.zsh.initExtra = '' | ||||
7 | source ${mommy-script} | ||||
8 | precmd() { if (( $? != 0 )); then; mommy false; fi } | ||||
9 | ''; | ||||
10 | } |