updated bug with env initialization; updated bug with error message on success

This commit is contained in:
Wryn Wagner 2021-09-16 22:32:19 -06:00
parent c89dded40b
commit 4008e410f1
4 changed files with 9 additions and 7 deletions

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
*.zsh diff

View File

@ -25,6 +25,7 @@ _CA__ACTIVATE() {
_CA__ACTIVATE_SOURCE_PATH $SOURCE_PATH _CA__ACTIVATE_SOURCE_PATH $SOURCE_PATH
_CA__TMUX_WINDOW_RENAME $PROJECT _CA__TMUX_WINDOW_RENAME $PROJECT
return 0
} }
_CA__ACTIVATE_VIRTUAL_ENV() { _CA__ACTIVATE_VIRTUAL_ENV() {

View File

@ -22,7 +22,7 @@ _CA__GET_FULL_PATH() {
local FULL_BASE_DIR=$(\ local FULL_BASE_DIR=$(\
echo $CODE_ACTIVATOR__DIRS \ echo $CODE_ACTIVATOR__DIRS \
| sed 's/\s\+/\n/' \ | sed 's/\s\+/\n/g' \
| grep "^.*/$PROJECT_ROOT_SHORT$" \ | grep "^.*/$PROJECT_ROOT_SHORT$" \
) )

View File

@ -18,13 +18,13 @@ export CODE_ACTIVATOR__KNOWN_TARGETS=(
##################################################################### #####################################################################
[ ! $_CA__SOURCE_DIR_NAME ] && export _CA__SOURCE_DIR_NAME='code' export _CA__SOURCE_DIR_NAME='code'
[ ! $_CA__VIRTUAL_ENV_NAME ] && export _CA__VIRTUAL_ENV_NAME='env' export _CA__VIRTUAL_ENV_NAME='env'
[ ! $_CA__CUSTOM_ENV_NAME ] && export _CA__CUSTOM_ENV_NAME='custom-env' export _CA__CUSTOM_ENV_NAME='custom-env'
[ ! $_CA__NO_ENV_SENTINEL ] && export _CA__NO_ENV_SENTINEL='no-env' export _CA__NO_ENV_SENTINEL='no-env'
[ ! $_CA__GIT_MAIN_BRANCH ] && export _CA__GIT_MAIN_BRANCH='master' export _CA__GIT_MAIN_BRANCH='master'
[ ! $_CA__CUSTOM_ENV_TEMPLATE ] && export _CA__CUSTOM_ENV_TEMPLATE="${0:a:h}/custom-env-template.zsh" export _CA__CUSTOM_ENV_TEMPLATE="${0:a:h}/custom-env-template.zsh"
##################################################################### #####################################################################