From ae1c7744ea65418bc9e7a78a2c0fd1ca18011334 Mon Sep 17 00:00:00 2001 From: Enrico Fasoli Date: Thu, 24 Sep 2015 17:19:41 +0200 Subject: [PATCH] migliorata nix-shell --- enter-nix-shell | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/enter-nix-shell b/enter-nix-shell index c1357e2..c6ce419 100755 --- a/enter-nix-shell +++ b/enter-nix-shell @@ -2,4 +2,11 @@ # This script uses nix-shell to build an environment suitable for developing and testing this package -nix-shell -p gnumake python2 nodejs +# Run this with the "start" argument to automatically download deps and +# start talking to asjon in the CLI :) + +if [ "$1" == "start" ]; then + nix-shell -p gnumake python2 nodejs --command "npm install && bin/hubot" +else + nix-shell -p gnumake python2 nodejs +fi