WIP
This commit is contained in:
@@ -1,7 +1,16 @@
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
source ~/.bashrc
|
||||
|
||||
set -
|
||||
|
||||
trap '[[ "$?" == "1" ]] && echo -e "\033[1;31m[jj] ERROR !\033[0m" >&2' EXIT
|
||||
|
||||
|
||||
autoload -U compinit
|
||||
compinit
|
||||
|
||||
|
||||
|
||||
jjCpmmandRunPoint=$(echo ${BASH_SOURCE[0]})
|
||||
|
||||
@@ -27,6 +36,10 @@ function findJJSource {
|
||||
|
||||
export JJ_SOURCE_DIR=$(findJJSource)
|
||||
|
||||
if [[ "$1" == "--clean" ]]; then
|
||||
rm -rf $JJ_SOURCE_DIR/~~tmp/deps
|
||||
fi
|
||||
|
||||
if [[ -e ~/.bun/bin/bun ]]; then
|
||||
export PATH="~/.bun/bin:${PATH}"
|
||||
fi
|
||||
@@ -40,21 +53,31 @@ if [[ "$__currentBunVersion" != "${__bunVersionExpect}" ]]; then
|
||||
fi
|
||||
|
||||
|
||||
mkdir -p "$JJ_SOURCE_DIR/~~tmp"
|
||||
mkdir -p "$JJ_SOURCE_DIR/~~tmp/deps"
|
||||
|
||||
alias jj="$JJ_SOURCE_DIR/jj.sh"
|
||||
|
||||
|
||||
source "$JJ_SOURCE_DIR/bashUtils/index.sh"
|
||||
|
||||
|
||||
|
||||
# $JJ_SOURCE_DIR/helpers/jjEnsure.ts returnProcessEnvs
|
||||
# exit 0
|
||||
|
||||
eval $($JJ_SOURCE_DIR/helpers/jjEnsure.ts returnProcessEnvs)
|
||||
# echo $JJ_WORKSPACE_DIR
|
||||
|
||||
# jjCliLog jjLog testjjLog a b c s
|
||||
# jjCliLog jjLogInfo testjjLogInfo
|
||||
# jjCliLog jjLogHeading testjjLogHeading
|
||||
|
||||
|
||||
export ASDF_DIR="$JJ_SOURCE_DIR/~~asdf_gc"
|
||||
export ASDF_DATA_DIR="$JJ_SOURCE_DIR/~~asdf_gc"
|
||||
export ASDF_VERSION=v0.14.1
|
||||
|
||||
source "$JJ_SOURCE_DIR/bashUtils/ensureDependency.sh"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# if [[ ! -e $JJ_SOURCE_DIR/~~tmp/pa ]]; then
|
||||
|
||||
Reference in New Issue
Block a user