Skip to content

Commit

Permalink
Add support for clear env variable (#13)
Browse files Browse the repository at this point in the history
Ref #9 
Adds script support for the `clear` env variable
  • Loading branch information
andrewvious authored Aug 7, 2024
1 parent 4401059 commit 5ec0ead
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nix-watch.nix
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@ let
ignore_patterns="[''${IGNORE_PATTERNS[@]}]"
debug "The following patterns will be ignored: ''${ANSI_BLUE}$ignore_patterns''${ANSI_RESET}"
if [[ "$CLEAR" == false && -n "$NIX_WATCH_CLEAR" ]]; then
CLEAR=$(convert_int_to_bool $NIX_WATCH_CLEAR)
fi
if [[ "$DEBUG" == false && -n "$NIX_WATCH_DEBUG" ]]; then
DEBUG=$(convert_int_to_bool $NIX_WATCH_DEBUG)
fi
Expand Down

0 comments on commit 5ec0ead

Please sign in to comment.