@@ -269,7 +269,7 @@ __launchpad_chpwd() {
269
269
hash -r 2>/dev/null || true
270
270
271
271
if [[ "\$\{LAUNCHPAD_SHOW_ENV_MESSAGES:-true\}" != "false" ]]; then
272
- printf "✅ Environment activated for \\033[3m$(basename "$project_dir")\\033[0m\\n" >&2
272
+ ${ launchpadBinary } dev:on "$project_dir" --shell-safe >&2 2>/dev/null || printf "✅ Environment activated for \\033[3m$(basename "$project_dir")\\033[0m\\n" >&2
273
273
fi
274
274
return 0
275
275
fi
@@ -343,7 +343,8 @@ __launchpad_chpwd() {
343
343
# Show clean activation message that replaces any previous output
344
344
if [[ "\$\{LAUNCHPAD_SHOW_ENV_MESSAGES:-true\}" != "false" ]]; then
345
345
# Use carriage return to replace any previous output
346
- printf "\\r\\033[K✅ Environment activated for \\033[3m$(basename "$project_dir")\\033[0m\\n" >&2
346
+ printf "\\r\\033[K" >&2
347
+ ${ launchpadBinary } dev:on "$project_dir" --shell-safe >&2 2>/dev/null || printf "✅ Environment activated for \\033[3m$(basename "$project_dir")\\033[0m\\n" >&2
347
348
fi
348
349
else
349
350
# Setup failed but not due to timeout - try to set up basic environment silently
@@ -362,7 +363,8 @@ __launchpad_chpwd() {
362
363
363
364
# Show activation message only if environment already exists
364
365
if [[ "\$\{LAUNCHPAD_SHOW_ENV_MESSAGES:-true\}" != "false" ]]; then
365
- printf "\\r\\033[K✅ Environment activated for \\033[3m$(basename "$project_dir")\\033[0m\\n" >&2
366
+ printf "\\r\\033[K" >&2
367
+ ${ launchpadBinary } dev:on "$project_dir" --shell-safe >&2 2>/dev/null || printf "✅ Environment activated for \\033[3m$(basename "$project_dir")\\033[0m\\n" >&2
366
368
fi
367
369
fi
368
370
# If no environment exists, be completely silent
@@ -401,7 +403,8 @@ __launchpad_chpwd() {
401
403
402
404
# Show deactivation message synchronously (no background jobs)
403
405
if [[ "\$\{LAUNCHPAD_SHOW_ENV_MESSAGES:-true\}" != "false" ]]; then
404
- printf "\\r\\033[K⚪ Environment deactivated\\n" >&2
406
+ printf "\\r\\033[K" >&2
407
+ ${ launchpadBinary } dev:off >&2 2>/dev/null || printf "⚪ Environment deactivated\\n" >&2
405
408
fi
406
409
407
410
unset LAUNCHPAD_CURRENT_PROJECT
0 commit comments