mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-08-07 06:08:39 +02:00
adding a template for meetup hosts
This commit is contained in:
parent
7b14df9d10
commit
eaf5c4544a
1 changed files with 5 additions and 1 deletions
|
|
@ -16,8 +16,12 @@ USAGE
|
||||||
function atlas_new {
|
function atlas_new {
|
||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
echo "need a name of new map";
|
echo "need a name of new map";
|
||||||
|
else
|
||||||
|
if [[ -e "/Users/nstilwell/.hosts/template" ]]; then
|
||||||
|
cp /Users/nstilwell/.hosts/template ~/.hosts/$1;
|
||||||
else
|
else
|
||||||
touch ~/.hosts/$1;
|
touch ~/.hosts/$1;
|
||||||
|
fi
|
||||||
echo "Created $1 at ~/.hosts/$1";
|
echo "Created $1 at ~/.hosts/$1";
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue