Skip to content

Commit 6766f6e

Browse files
authored
Merge pull request #584 from crhultay/patch-1
autoexec.sh environment enhancement
2 parents 23f9fa6 + 56df7eb commit 6766f6e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

autoexec.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ AUTOEXEC_LOGFILE="$ENIGMA_INSTALL_DIR/logs/autoexec.log"
66
TIME_FORMAT=`date "+%Y-%m-%d %H:%M:%S"`
77

88
# Mise en place
9-
~/.local/bin/mise activate bash >> bash
9+
export PATH="$HOME/.local/bin:$PATH"
10+
export PATH="$HOME/.local/share/mise/shims:$PATH"
11+
export PATH="$HOME/.local/share/mise/installs/python/latest/bin:$PATH"
1012

1113
# Environment Versions
1214
ENIGMA_NODE_VERSION=${ENIGMA_NODE_VERSION:=$(toml get --toml-path=$ENIGMA_INSTALL_DIR/mise.toml tools.node)}
@@ -32,8 +34,9 @@ log "- CURRENT DIR: ${PWD##}"
3234

3335
if ! command -v "mise" 2>&1 >/dev/null
3436
then
35-
log "mise is not in your PATH, activating"
36-
eval "$(~/.local/bin/mise activate bash)"
37+
log "mise is not in your PATH"
38+
log "ERROR END"
39+
exit 1
3740
fi
3841

3942
if ! command -v "node" 2>&1 >/dev/null

0 commit comments

Comments
 (0)