From eaf5c4544a3c6aa8cda2cf61a8f640c24e66c58e Mon Sep 17 00:00:00 2001 From: Nathan Stilwell Date: Fri, 11 Mar 2016 11:10:12 -0500 Subject: [PATCH] adding a template for meetup hosts --- plugins/atlas/atlas.plugin.zsh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/atlas/atlas.plugin.zsh b/plugins/atlas/atlas.plugin.zsh index 210e4b10e..f9959bde7 100644 --- a/plugins/atlas/atlas.plugin.zsh +++ b/plugins/atlas/atlas.plugin.zsh @@ -17,7 +17,11 @@ function atlas_new { if [ -z "$1" ]; then echo "need a name of new map"; else - touch ~/.hosts/$1; + if [[ -e "/Users/nstilwell/.hosts/template" ]]; then + cp /Users/nstilwell/.hosts/template ~/.hosts/$1; + else + touch ~/.hosts/$1; + fi echo "Created $1 at ~/.hosts/$1"; fi }