Migrate TYPO3_ADDITIONAL_CONFIGURATION environment variable

This doesn't change and can be set global.
That allows nix shells to pick it up.
This commit is contained in:
Daniel Siepmann 2022-02-14 08:03:47 +01:00
parent 51fbae7d71
commit 2cdb96acc6
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
2 changed files with 3 additions and 3 deletions

View file

@ -23,6 +23,7 @@
GREP_COLOR = "0;30;44";
TYPO3_CONTEXT = "Development/dsiepmann";
TYPO3_ADDITIONAL_CONFIGURATION = "/home/daniels/.dotfiles/configs/php/typo3/AdditionalConfiguration.inc.php";
PHAN_COLOR_SCHEME = "code";
# Reduce timeout after <ESC> (vi keybindings)

View file

@ -19,7 +19,6 @@ let
projectRoot="$(pwd)/$1"
url="https://$domain.$(basename $(pwd) | ${sed} 's/\-//g').localhost/"
editorPath="$projectRoot"
additionalConfiguration="/home/daniels/.dotfiles/configs/php/typo3/AdditionalConfiguration.inc.php"
# Only create session if not already exists
${tmux} has-session -t "$session"
@ -67,7 +66,7 @@ let
# Open Editor
${tmux} new-session -s "$session" -n editor -d
${tmux} send-keys " export TYPO3_BASE=$url TYPO3_COMPOSER_AUTOLOAD=1 TYPO3_ADDITIONAL_CONFIGURATION=$additionalConfiguration SOLR_HOST=localhost SOLR_PORT=8983 SOLR_SCHEME=http SOLR_CORE=core_de" C-m
${tmux} send-keys " export TYPO3_BASE=$url TYPO3_COMPOSER_AUTOLOAD=1 SOLR_HOST=localhost SOLR_PORT=8983 SOLR_SCHEME=http SOLR_CORE=core_de" C-m
if [ "$testingDatabaseName" != "" ]; then
${tmux} send-keys " export typo3DatabaseName=$testingDatabaseName typo3DatabaseHost=localhost typo3DatabaseUsername=testing typo3DatabasePassword=testing" C-m
fi
@ -85,7 +84,7 @@ let
${tmux} new-window -n project -t "$session"
${tmux} send-keys -t "$session:$windowId" "cd $editorPath" C-m
${tmux} send-keys " renice -n 5 \$\$" C-m
${tmux} send-keys " export TYPO3_BASE=$url TYPO3_COMPOSER_AUTOLOAD=1 TYPO3_ADDITIONAL_CONFIGURATION=$additionalConfiguration SOLR_HOST=localhost SOLR_PORT=8983 SOLR_SCHEME=http SOLR_CORE=core_de" C-m
${tmux} send-keys " export TYPO3_BASE=$url TYPO3_COMPOSER_AUTOLOAD=1 SOLR_HOST=localhost SOLR_PORT=8983 SOLR_SCHEME=http SOLR_CORE=core_de" C-m
${tmux} send-keys C-l
if [ "$testingDatabaseName" != "" ]; then
${tmux} send-keys " export typo3DatabaseName=$testingDatabaseName typo3DatabaseHost=localhost typo3DatabaseUsername=testing typo3DatabasePassword=testing" C-m