exit_idf added. added echo of ESP_IDF_VERSION to export
This commit is contained in:
@@ -103,12 +103,12 @@ run_esp_reinstall
|
|||||||
Second optional argument specifies branch:
|
Second optional argument specifies branch:
|
||||||
`run_esp_reinstall nuke v5.4.1`
|
`run_esp_reinstall nuke v5.4.1`
|
||||||
|
|
||||||
esp_monitor
|
esp_install_monitor
|
||||||
monitors install.log
|
monitors install.log
|
||||||
alias for tail -n 75 -f $ESPIDF_INSTALLDIR/install.log
|
alias for tail -n 75 -f $ESPIDF_INSTALLDIR/install.log
|
||||||
no arguments
|
no arguments
|
||||||
|
|
||||||
esp_logs
|
esp__install_logs
|
||||||
displays full text of install.log and version-data.txt
|
displays full text of install.log and version-data.txt
|
||||||
no arguments
|
no arguments
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ installDate=installDateTAG
|
|||||||
|
|
||||||
if [ -z $ESPIDF_INSTALLDIR ]; then
|
if [ -z $ESPIDF_INSTALLDIR ]; then
|
||||||
echo -e "\nFAIL: ESPIDF_INSTALLDIR environment variable not found!\nReinstall via script or manually add to ~/.zshrc\n"
|
echo -e "\nFAIL: ESPIDF_INSTALLDIR environment variable not found!\nReinstall via script or manually add to ~/.zshrc\n"
|
||||||
# exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
binDir="$ESPIDF_INSTALLDIR/.custom_bin"
|
binDir="$ESPIDF_INSTALLDIR/.custom_bin"
|
||||||
@@ -60,10 +60,12 @@ alias monitor="idf.py monitor"
|
|||||||
alias flashmonitor="idf.py flash monitor"
|
alias flashmonitor="idf.py flash monitor"
|
||||||
alias menuconfig="idf.py menuconfig"
|
alias menuconfig="idf.py menuconfig"
|
||||||
|
|
||||||
# echo -e "Changing dir to $ESPIDF_INSTALLDIR"
|
echo -e "Changing dir to $ESPIDF_INSTALLDIR"
|
||||||
# cd $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 ##################
|
# end esp-idf stuffss I made ##################
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -51,10 +51,16 @@ Usage:
|
|||||||
Once installed for the first time, restart your shell.
|
Once installed for the first time, restart your shell.
|
||||||
to activate esp-idf with the custom additions, run:
|
to activate esp-idf with the custom additions, run:
|
||||||
`get_idf`
|
`get_idf`
|
||||||
|
exit with
|
||||||
|
`exit_idf`
|
||||||
|
for help
|
||||||
|
`help-esp`
|
||||||
|
|
||||||
|
|
||||||
Features:
|
Features:
|
||||||
`help-esp` show this help
|
`help-esp` show this help
|
||||||
|
`get_idf` enter esp-idf
|
||||||
|
`exit_idf` exit esp-idf and reset terminal
|
||||||
`build` idf.py build
|
`build` idf.py build
|
||||||
`changebaud` prompts to enter a new baud
|
`changebaud` prompts to enter a new baud
|
||||||
`changeesp` prompts to type in esp32s3, esp32c6, etc
|
`changeesp` prompts to type in esp32s3, esp32c6, etc
|
||||||
@@ -72,6 +78,7 @@ Features:
|
|||||||
`chipinfo` get information from the esp chip
|
`chipinfo` get information from the esp chip
|
||||||
`espinfo` get detailed information from the esp chip
|
`espinfo` get detailed information from the esp chip
|
||||||
`menuconfig` run `idf.py menuconfig`
|
`menuconfig` run `idf.py menuconfig`
|
||||||
|
|
||||||
|
|
||||||
Aliases:
|
Aliases:
|
||||||
run_esp_reinstall
|
run_esp_reinstall
|
||||||
@@ -88,12 +95,12 @@ Aliases:
|
|||||||
Second optional argument specifies branch (requires two arguments!):
|
Second optional argument specifies branch (requires two arguments!):
|
||||||
`run_esp_reinstall nuke v5.4.1`
|
`run_esp_reinstall nuke v5.4.1`
|
||||||
|
|
||||||
esp_monitor
|
esp_install_monitor
|
||||||
monitors install.log
|
monitors install.log
|
||||||
alias for tail -n 75 -f $ESPIDF_INSTALLDIR/install.log
|
alias for tail -n 75 -f $ESPIDF_INSTALLDIR/install.log
|
||||||
no arguments
|
no arguments
|
||||||
|
|
||||||
esp_logs
|
esp_install_logs
|
||||||
displays full text of install.log and version-data.txt
|
displays full text of install.log and version-data.txt
|
||||||
no arguments
|
no arguments
|
||||||
|
|
||||||
|
|||||||
@@ -295,7 +295,7 @@ function handleDownloadInstall() {
|
|||||||
gitChk=$?
|
gitChk=$?
|
||||||
iendTime=$(date '+%s')
|
iendTime=$(date '+%s')
|
||||||
installerTime=$(($iendTime-$istartTime))
|
installerTime=$(($iendTime-$istartTime))
|
||||||
writeToLog "Git CLONE completed in $installerTime seconds\n"
|
writeToLog "Git CLONE completed in $installerTime seconds from branch $gitBranch\n"
|
||||||
else
|
else
|
||||||
writeToLog "Setting for update mode\n"
|
writeToLog "Setting for update mode\n"
|
||||||
|
|
||||||
@@ -306,7 +306,7 @@ function handleDownloadInstall() {
|
|||||||
gitChk=$?
|
gitChk=$?
|
||||||
iendTime=$(date '+%s')
|
iendTime=$(date '+%s')
|
||||||
installerTime=$(($iendTime-$istartTime))
|
installerTime=$(($iendTime-$istartTime))
|
||||||
writeToLog "Git UPDATE completed in $installerTime seconds\n"
|
writeToLog "Git UPDATE completed in $installerTime seconds from Branch $gitBranch\n"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
istartTime=$(date '+%s')
|
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
|
elif [[ "$arg" == "cron" || "$arg" == "c" ]]; then # full install with warn, sleep, and reboot
|
||||||
action="REINSTALL (CRON)"
|
action="REINSTALL (CRON)"
|
||||||
# sleepMins=3
|
# sleepMins=3
|
||||||
|
idfGet="update"
|
||||||
sleepMins=0
|
sleepMins=0
|
||||||
|
|
||||||
handleStart
|
handleStart
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
8-alpha
|
8-beta-2
|
||||||
|
|||||||
Reference in New Issue
Block a user