diff --git a/users/modules/global/shells/zsh.nix b/users/modules/global/shells/zsh.nix index 4d38756..7feb9c4 100644 --- a/users/modules/global/shells/zsh.nix +++ b/users/modules/global/shells/zsh.nix @@ -25,10 +25,12 @@ precmd() { precmd_any_nix_shell - if [[ -e ~/TODO.txt && ! -v __TODO_PRINTED ]] then + if [[ -s ~/TODO.txt && ! -v __TODO_PRINTED ]] then export __TODO_PRINTED=1 - echo TODO: - \cat ~/TODO.txt + if [[ "$(cat ~/TODO.txt)" != "" ]] then + echo TODO: + \cat ~/TODO.txt + fi fi }