From da1bbadc8dcdda4cf8f6668621beb442f97810c8 Mon Sep 17 00:00:00 2001 From: Zhuang Sirui Date: Thu, 1 Aug 2013 15:37:12 +0800 Subject: [PATCH 1/2] add a source sh --- goproj.sh | 2 ++ 1 file changed, 2 insertions(+) create mode 100755 goproj.sh diff --git a/goproj.sh b/goproj.sh new file mode 100755 index 0000000..05a7907 --- /dev/null +++ b/goproj.sh @@ -0,0 +1,2 @@ +#!/bin/bash + From 9d18d1436bcc5b954ed75d2f96d4b5e72c697131 Mon Sep 17 00:00:00 2001 From: Zhuang Sirui Date: Thu, 1 Aug 2013 15:53:05 +0800 Subject: [PATCH 2/2] Add this file for one line source and set the path dynamic --- goproj.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/goproj.sh b/goproj.sh index 05a7907..eb22449 100755 --- a/goproj.sh +++ b/goproj.sh @@ -1,2 +1,8 @@ #!/bin/bash +current_path=$(dirname $0) +bin_dir="${current_path}/bin" + +PATH=$PATH:${bin_dir} + +alias go="goproj-go"