adding a template for meetup hosts

This commit is contained in:
Nathan Stilwell 2016-03-11 11:10:12 -05:00
commit eaf5c4544a

View file

@ -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
}