moss

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 40e7af92630a78b2b4541fcde961c21d152690de
parent a8b2e4e78daa7c27f2655c17e19c1842325be97d
Author: Daniel Barlow <dan@telent.net>
Date:   Mon,  9 Aug 2021 00:28:48 +0100

create and document run_watch shell function

Diffstat:
MREADME.md | 4++++
Mshell.nix | 7++++++-
2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md @@ -13,3 +13,7 @@ add, generate, edit, show a password, search password names. * the gemset.nix and shell.nix are for Nix users. If you need to edit the Gemfile, use `bundle lock && nix run nixpkgs.bundix -c bundix` to regenerate gemset.nix + +* if you have `entr` installed, you can get fast test feedback by doing +`find . -type f | entr cucumber --publish-quiet -i`. For Nix users, +there is an alias `run_watch` that does this diff --git a/shell.nix b/shell.nix @@ -5,5 +5,10 @@ let gems = bundlerEnv { }; in mkShell { packages = [ gems gems.wrappedRuby pkgs.age pkgs.entr ]; - watch = "find . -type f | entr cucumber --publish-quiet -i"; + shellHook = '' + run_watch() { + find . -type f | entr cucumber --publish-quiet -i; + } + ''; + }