exit_idf added. added echo of ESP_IDF_VERSION to export

This commit is contained in:
2025-04-30 11:35:40 -06:00
parent 08dffc74b3
commit f02f963ed5
6 changed files with 37 additions and 11 deletions
+2 -2
View File
@@ -103,12 +103,12 @@ run_esp_reinstall
Second optional argument specifies branch:
`run_esp_reinstall nuke v5.4.1`
esp_monitor
esp_install_monitor
monitors install.log
alias for tail -n 75 -f $ESPIDF_INSTALLDIR/install.log
no arguments
esp_logs
esp__install_logs
displays full text of install.log and version-data.txt
no arguments
```
+6 -4
View File
@@ -13,7 +13,7 @@ installDate=installDateTAG
if [ -z $ESPIDF_INSTALLDIR ]; then
echo -e "\nFAIL: ESPIDF_INSTALLDIR environment variable not found!\nReinstall via script or manually add to ~/.zshrc\n"
# exit
exit
fi
binDir="$ESPIDF_INSTALLDIR/.custom_bin"
@@ -60,10 +60,12 @@ alias monitor="idf.py monitor"
alias flashmonitor="idf.py flash monitor"
alias menuconfig="idf.py menuconfig"
# echo -e "Changing dir to $ESPIDF_INSTALLDIR"
# cd $ESPIDF_INSTALLDIR
echo -e "Changing dir to $ESPIDF_INSTALLDIR"
cd $ESPIDF_INSTALLDIR
echo -e "\nAll done :3\n"
echo -e "esp-idf $ESP_IDF_VERSION"
echo -e "\nWelcome to esp-idf!\nAll done :3\n"
###############################################
# end esp-idf stuffss I made ##################
+16
View File
@@ -0,0 +1,16 @@
unset $ESPIDF_INSTALLDIR
unset $IDF_PATH
unset $ESP_IDF_VERSION
unset $IDF_PYTHON_ENV_PATH
unset $OPENOCD_SCRIPTS
unset $ESP_ROM_ELF_DIR
unset $IDF_DEACTIVATE_FILE_PATH
unset $IDF_TOOLS_INSTALL_CMD
unset $IDF_TOOLS_EXPORT_CMD
unset $IDF_TOOLS_EXPORT_CMD
unset $ESPPORT
unset $ESPBAUD
unset $ESPTARGET
exec "$SHELL" --login
source $HOME/.zshrc
reset
+9 -2
View File
@@ -51,10 +51,16 @@ Usage:
Once installed for the first time, restart your shell.
to activate esp-idf with the custom additions, run:
`get_idf`
exit with
`exit_idf`
for help
`help-esp`
Features:
`help-esp` show this help
`get_idf` enter esp-idf
`exit_idf` exit esp-idf and reset terminal
`build` idf.py build
`changebaud` prompts to enter a new baud
`changeesp` prompts to type in esp32s3, esp32c6, etc
@@ -72,6 +78,7 @@ Features:
`chipinfo` get information from the esp chip
`espinfo` get detailed information from the esp chip
`menuconfig` run `idf.py menuconfig`
Aliases:
run_esp_reinstall
@@ -88,12 +95,12 @@ Aliases:
Second optional argument specifies branch (requires two arguments!):
`run_esp_reinstall nuke v5.4.1`
esp_monitor
esp_install_monitor
monitors install.log
alias for tail -n 75 -f $ESPIDF_INSTALLDIR/install.log
no arguments
esp_logs
esp_install_logs
displays full text of install.log and version-data.txt
no arguments
+3 -2
View File
@@ -295,7 +295,7 @@ function handleDownloadInstall() {
gitChk=$?
iendTime=$(date '+%s')
installerTime=$(($iendTime-$istartTime))
writeToLog "Git CLONE completed in $installerTime seconds\n"
writeToLog "Git CLONE completed in $installerTime seconds from branch $gitBranch\n"
else
writeToLog "Setting for update mode\n"
@@ -306,7 +306,7 @@ function handleDownloadInstall() {
gitChk=$?
iendTime=$(date '+%s')
installerTime=$(($iendTime-$istartTime))
writeToLog "Git UPDATE completed in $installerTime seconds\n"
writeToLog "Git UPDATE completed in $installerTime seconds from Branch $gitBranch\n"
fi
istartTime=$(date '+%s')
@@ -587,6 +587,7 @@ elif [[ "$arg" == "interactive" || "$arg" == "i" ]]; then
elif [[ "$arg" == "cron" || "$arg" == "c" ]]; then # full install with warn, sleep, and reboot
action="REINSTALL (CRON)"
# sleepMins=3
idfGet="update"
sleepMins=0
handleStart
+1 -1
View File
@@ -1 +1 @@
8-alpha
8-beta-2