From 950d6a032df09bcc4dbf421adf0ea9c40b1cd221 Mon Sep 17 00:00:00 2001 From: Luciano Antonio Borguetti Faustino Date: Wed, 22 Mar 2017 10:42:03 -0300 Subject: [PATCH 1/3] Added Makefile --- Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..facaeb4 --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ +.PHONY: deps install + +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 From bac8f8113d1b500139f3037d75932cdc2bf70f80 Mon Sep 17 00:00:00 2001 From: Luciano Antonio Borguetti Faustino Date: Wed, 22 Mar 2017 11:20:16 -0300 Subject: [PATCH 2/3] Added target all in .PHONY --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index facaeb4..fb10abd 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: deps install +.PHONY: deps install all ifndef NASHPATH $(error $$NASHPATH is not set) From efb003d6cb7e64d1f73b1ba41f44913fd4ae487f Mon Sep 17 00:00:00 2001 From: Luciano Antonio Borguetti Faustino Date: Wed, 22 Mar 2017 11:24:44 -0300 Subject: [PATCH 3/3] Updated README.md --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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.