diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..fb10abd --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ +.PHONY: deps install all + +ifndef NASHPATH + $(error $$NASHPATH is not set) +endif + +ifndef GOPATH + $(error $$GOPATH is not set) +endif + +all: deps install + +deps: + go get github.com/c0defellas/enzo/cmd/... + +install: + mkdir -p $(NASHPATH)/lib/nashcomplete + cp all.sh $(NASHPATH)/lib/nashcomplete + cp common.sh $(NASHPATH)/lib/nashcomplete + cp deps.sh $(NASHPATH)/lib/nashcomplete + cp files.sh $(NASHPATH)/lib/nashcomplete + cp history.sh $(NASHPATH)/lib/nashcomplete + cp kill.sh $(NASHPATH)/lib/nashcomplete + cp programs.sh $(NASHPATH)/lib/nashcomplete + cp systemd.sh $(NASHPATH)/lib/nashcomplete diff --git a/README.md b/README.md index bbb059c..5b39fe7 100644 --- a/README.md +++ b/README.md @@ -9,9 +9,10 @@ The name says everything. First clone the repository: ```sh -λ> mkdir -p $NASHPATH+"/lib" -λ> cd $NASHPATH+"/lib" -λ> git clone git@github.com:tiago4orion/nashcomplete.git +λ> git clone git@github.com:NeowayLabs/nashcomplete.git +λ> cd nashcomplete +λ> make + ``` To setup the auto complete you only need to add an import line into your init script.