From 3cf066a0b84c45d88d827063cd58567bc943c3ad Mon Sep 17 00:00:00 2001 From: PrincessPi3 Date: Wed, 30 Apr 2025 17:08:25 -0600 Subject: [PATCH] bug fixes --- README.md | 5 ++++- add-to-export-sh.txt | 4 ++-- custom_bin/help-esp | 1 - custom_bin/help_esp_tools | 1 + esp-idf-tools-cmd.sh | 2 +- help.txt | 6 +++--- 6 files changed, 11 insertions(+), 8 deletions(-) delete mode 100644 custom_bin/help-esp create mode 100644 custom_bin/help_esp_tools diff --git a/README.md b/README.md index 4972940..299b27d 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Literally the most schizophrenically overengineered thing I have ever made. idk `git clone https://github.com/PrincessPi3/esp-idf-tools.git ~/esp-idf-tools` `bash ~/esp-idf-tools/esp-idf-tools-cmd.sh` `source ~/.zshrc` -`get_idf` +`get_esp_tools` ## Features `build` idf.py build @@ -115,6 +115,9 @@ esp_install_monitor esp__install_logs displays full text of install.log and version-data.txt no arguments + +exit_esp_tools + exit and reset shell ``` ## Helpful stuff diff --git a/add-to-export-sh.txt b/add-to-export-sh.txt index 22d156f..4f16830 100644 --- a/add-to-export-sh.txt +++ b/add-to-export-sh.txt @@ -44,7 +44,7 @@ export examples="$ESPIDF_INSTALLDIR/esp-idf/examples" echo -e "Installation Variables:" tail -1 "$ESPIDF_INSTALLDIR/version-data.log" -echo -e "\tesp-install-custom version: $versionData" +echo -e "\tesp-idf-toolsversion: $versionData" echo -e "\tesp-idf version: $ESP_IDF_VERSION" echo -e "\tcommmit hash: $commitHash" echo -e "\tbranch: $branchData" @@ -64,7 +64,7 @@ echo -e "\nSetting alias" alias changeport="source $binDir/changeport.sh" alias changebaud="source $binDir/changebaud.sh" alias changeesp="source $binDir/changeesp.sh" -alias exit_idf="source $binDir/exit_idf.sh" +alias exit_esp_tools="source $binDir/exit_idf.sh" alias monitor="idf.py monitor" alias flashmonitor="idf.py flash monitor" alias menuconfig="idf.py menuconfig" diff --git a/custom_bin/help-esp b/custom_bin/help-esp deleted file mode 100644 index 3362ece..0000000 --- a/custom_bin/help-esp +++ /dev/null @@ -1 +0,0 @@ -cat $HOME/esp/esp-install-custom/help.txt diff --git a/custom_bin/help_esp_tools b/custom_bin/help_esp_tools new file mode 100644 index 0000000..5bed8c8 --- /dev/null +++ b/custom_bin/help_esp_tools @@ -0,0 +1 @@ +cat $ESPIDF_INSTALLDIR/help.txt diff --git a/esp-idf-tools-cmd.sh b/esp-idf-tools-cmd.sh index 7faf0cc..375794b 100644 --- a/esp-idf-tools-cmd.sh +++ b/esp-idf-tools-cmd.sh @@ -263,7 +263,7 @@ function testAppendAlias() { } function handleAliasEnviron() { - testAppendAlias "get_idf" "alias get_idf='. $exportScript'" + testAppendAlias "get_esp_tools" "alias get_esp_tools='. $exportScript'" testAppendAlias "run_esp_cmd" "alias run_esp_reinstall='git -C $runningDir pull;echo -e \"\nOld Version:\";tail -1 $versionData;echo -e \"\n\";bash $runningDir/esp-idf-tools-cmd.sh'" testAppendAlias "esp_install_monitor" "alias esp_install_monitor='tail -n 75 -f $log'" testAppendAlias "esp_install_logs" "alias esp_install_logs='less $versionData;less $log'" diff --git a/help.txt b/help.txt index e7a8026..79ae876 100644 --- a/help.txt +++ b/help.txt @@ -50,11 +50,11 @@ Modes: Usage: Once installed for the first time, restart your shell. to activate esp-idf with the custom additions, run: - `get_idf` + `get_esp_tools` exit with - `exit_idf` + `exit_esp_tools` for help - `help-esp` + `help_esp_tools` Features: