hhhhhh
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user