From 7306f2ec1863608366d50cc601ff93234c9f8fdc Mon Sep 17 00:00:00 2001 From: PrincessPi3 Date: Mon, 18 Aug 2025 19:03:08 -0600 Subject: [PATCH] awooo --- esp-idf-tools-cmd.sh | 8 ++++++++ todo.txt | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/esp-idf-tools-cmd.sh b/esp-idf-tools-cmd.sh index 88f96c5..00a25f2 100644 --- a/esp-idf-tools-cmd.sh +++ b/esp-idf-tools-cmd.sh @@ -316,6 +316,14 @@ function testAppendAlias() { } function handleAliasEnviron() { + grep -q '# esp-idf-tools' $rcFile + ret=$? + + if [ ! $ret -eq 0 ]; then + writeToLog "Adding esp-idf-tools aliases to $rcFile" + echo -e "\n# esp-idf-tools\n" >> $rcFile + fi + testAppendAlias "get-esp-tools" "alias get-esp-tools='. $exportScript'" testAppendAlias "run-esp-cmd" "alias run-esp-cmd='bash $runningDir/esp-idf-tools-cmd.sh'" testAppendAlias "esp-install-monitor" "alias esp-install-monitor='tail -n 75 -f $log'" diff --git a/todo.txt b/todo.txt index 67fd7bc..6937f69 100644 --- a/todo.txt +++ b/todo.txt @@ -8,4 +8,5 @@ test da shit proper in bash finafrickingly lmfao changeport/changeport.sh recheck espinfo recheck changeesp/changeesp.sh - recheck changebaud/changebaud.sh \ No newline at end of file + recheck changebaud/changebaud.sh +some kinda more meaningful status indication instead of endless terminal spam? \ No newline at end of file