all repos — dotfiles @ 621157944a8b7b5fb355394580592694937591a6

my *nix dotfiles

Add helper script to create new Nim projects

Signed-off-by: Anirudh <icyph0x@pm.me>
Anirudh icyph0x@pm.me
Sun, 11 Nov 2018 12:31:30 +0530
commit

621157944a8b7b5fb355394580592694937591a6

parent

e3a75c54ff84ca0487dd2431e034eb5d0339c30a

1 files changed, 20 insertions(+), 0 deletions(-)

jump to
A bin/nim-proj

@@ -0,0 +1,20 @@

+#!/usr/bin/env bash + +# nim-proj.sh: initializes + +help() { + echo "Usage:" + echo "nim-proj <name> <description>" +} + +if [ $# -eq 2 ]; then + nimble init $1 + cd $1 + cat <<- EOF > readme.md + # $1 + > $2 + EOF + git init +else + help +fi