@: added external-init command

@lmartinking

Here's a clean topic branch for adding new command "external-init". Feel free to add it as you please in your own time.

Thanks,
icasimpan
Ok, I'll de-indent heredoc and remove the de-indentation sed line...


On Thu, Aug 21, 2014 at 1:42 PM, Lucas Martin-King <notifications@github.com
> wrote:

> In @:
>
> > + name=$( basename $origin )
> > +
> > + echo $name
> > +
> > + [[ -e $origin ]] && die "An external already exist by that name"
> > +
> > + cat > $origin <<EOF
> > +  # @
> > +  # |external-skel||describe what external-skel do|
> > +  _external-skel () {
> > +   echo "body of external-skel here"
> > +  }
> > +EOF
> > +
> > + sed -i "s/external-skel/$name/g" $origin
> > + sed -i "s/^  //" $origin
>
> I see you are de-indenting it here. Just remove the indentation from
> above, as this is fragile.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/lmartinking/monkey-tail/pull/4/files#r16521446>.
>



-- 
Ismael Angelo A. Casimpan Jr.
ismael.angelo@casimpan.com