WIP
This commit is contained in:
@@ -2,25 +2,6 @@
|
||||
autoload -U compinit
|
||||
compinit
|
||||
|
||||
function findJJSource {
|
||||
# @source http://stackoverflow.com/a/246128/330439
|
||||
local SOURCE="$jjCpmmandRunPoint"
|
||||
local DIR=""
|
||||
while [[ -h "$SOURCE" ]]; do
|
||||
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
||||
SOURCE="$(readlink "$SOURCE")"
|
||||
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
|
||||
done
|
||||
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
||||
while [[ ! -e "${DIR}/jj.filelocation" ]]; do
|
||||
DIR=$(dirname "${DIR}")
|
||||
done
|
||||
echo "${DIR}"
|
||||
}
|
||||
|
||||
|
||||
export JJ_SOURCE_DIR=$(findJJSource)
|
||||
|
||||
if [[ -e "$JJ_SOURCE_DIR/~~tmp/shEnvs.sh" ]]; then
|
||||
source $JJ_SOURCE_DIR/~~tmp/shEnvs.sh
|
||||
fi
|
||||
@@ -29,7 +10,6 @@ fi
|
||||
typeset -A opt_args
|
||||
|
||||
function _AuctoCompletion(){
|
||||
# echo $words
|
||||
COMMANDS_WITH_HELP=$($JJ_SOURCE_DIR/bashUtils/auto-completion.ts "1" $words )
|
||||
COMMANDS=$($JJ_SOURCE_DIR/bashUtils/auto-completion.ts "0" $words )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user