This commit is contained in:
2024-11-12 07:32:55 -07:00
parent cf789e96f4
commit 5f4a933ec6
3 changed files with 47 additions and 211 deletions
+6 -5
View File
@@ -21,12 +21,12 @@ echo "\nEnter TTY Number You'd Like:"
read tty
ttyselect=$devarr[(($tty+1))]
echo "Set esp target (esp32, esp32s3, esp32c6, esp8266, etc)"
echo "Set esp target:\n\tOne of: esp32, esp32s2, esp32c3, esp32s3, esp32c2, esp32c6, esp32h2, esp32p4, linux, esp32c5, or esp32c61"
read esp
echo "Setting environment variables"
echo "Adding Custom bins to PATH"
export PATH="${HOME}/esp/.custom_bin:${PATH}"
export PATH="${ESPIDF_INSTALLDIR}/.custom_bin:${PATH}"
echo "ESPPORT = ${ESPPORT}"
export ESPPORT="${ttyselect}"
export ESPBAUD=460800
@@ -35,7 +35,8 @@ echo "ESPBAUD = ${ESPBAUD}"
export ESPTARGET=$esp
echo "ESPTARGET = ${ESPTARGET}"
binDir="${HOME}/esp/.custom_bin"
binDir="${ESPIDF_INSTALLDIR}/.custom_bin"
echo "Setting alias"
alias changeport="source ${binDir}/changeport.sh"
alias changebaud="source ${binDir}/changebaud.sh"
@@ -44,8 +45,8 @@ alias monitor="idf.py monitor"
alias flashmonitor="idf.py flash monitor"
alias menuconfig="idf.py menuconfig"
echo "Changing dir to ${HOME}/esp"
cd "${HOME}/esp"
echo "Changing dir to ${ESPIDF_INSTALLDIR}"
cd "${ESPIDF_INSTALLDIR}"
echo "\nAll done :3\n"