diff --git a/add-to-export-sh.txt b/add-to-export-sh.txt index 4f16830..fbc953e 100644 --- a/add-to-export-sh.txt +++ b/add-to-export-sh.txt @@ -74,6 +74,8 @@ cd $ESPIDF_INSTALLDIR echo -e "\nesp-idf version: $ESP_IDF_VERSION commit $commitHash from branch $branchData" +echo -e "\nrun with `run_esp_cmd`" + echo -e "\nWelcome to esp-idf!\nAll done :3\n" ############################################### diff --git a/esp-idf-tools-cmd.sh b/esp-idf-tools-cmd.sh index 375794b..b6ba49c 100644 --- a/esp-idf-tools-cmd.sh +++ b/esp-idf-tools-cmd.sh @@ -38,9 +38,9 @@ arg=$1 # just rename the argument var for clarity with the functions # commands if [ "$gitJobs" == "default" ]; then - gitCloneCmd="git clone --single-branch --depth 1 --recursive --branch $gitBranch https://github.com/espressif/esp-idf $idfDir" + gitCloneCmd="git clone --depth 1 --recursive --branch $gitBranch https://github.com/espressif/esp-idf $idfDir" else - gitCloneCmd="git clone --single-branch --depth 1 --recursive --jobs $gitJobs --branch $gitBranch https://github.com/espressif/esp-idf $idfDir" + gitCloneCmd="git clone --depth 1 --recursive --jobs $gitJobs --branch $gitBranch https://github.com/espressif/esp-idf $idfDir" fi # gitCloneCmd="git clone --recursive --single-branch --jobs $gitJobs --branch $gitBranch https://github.com/espressif/esp-idf $idfDir" @@ -264,7 +264,7 @@ function testAppendAlias() { function handleAliasEnviron() { 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 "run_esp_cmd" "alias run_esp_cmd='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 79ae876..5aa0cd8 100644 --- a/help.txt +++ b/help.txt @@ -1,50 +1,55 @@ Modes: default: reinstalls non-interactively with no delays, logouts, or reboots - `bash esp-idf-tools-cmd.sh` + `run_esp_cmd` test: tests the script. very fast. minimal actions taken. no reinstall is done - `bash esp-idf-tools-cmd.sh test` - `bash esp-idf-tools-cmd.sh t` + `run_esp_cmd test` + `run_esp_cmd t` retool: reinstalls bins and export.sh, nothing else - `bash esp-idf-tools-cmd.sh retool` - `bash esp-idf-tools-cmd.sh rt` + `run_esp_cmd retool` + `run_esp_cmd rt` cron: runs noninteractively with forced user logout and automatic reboot, plus delays - `bash esp-idf-tools-cmd.sh cron` - `bash esp-idf-tools-cmd.sh c` + `run_esp_cmd cron` + `run_esp_cmd c` + + update: + updates and installs latest without reboot or user logout + `run_esp_cmd update` + `run_esp_cmd u` interactive: interactively installs/reinstalls esp-idf - `bash esp-idf-tools-cmd.sh interactive` - `bash esp-idf-tools-cmd.sh i` + `run_esp_cmd interactive` + `run_esp_cmd i` nuke: full delete and re-download and install - `bash esp-idf-tools-cmd.sh nuke` - `bash esp-idf-tools-cmd.sh n` + `run_esp_cmd nuke` + `run_esp_cmd n` clearlogs: clear logs - `bash esp-idf-tools-cmd.sh clearlogs` - `bash esp-idf-tools-cmd.sh clear` - `bash esp-idf-tools-cmd.sh clean` - `bash esp-idf-tools-cmd.sh cl` + `run_esp_cmd clearlogs` + `run_esp_cmd clear` + `run_esp_cmd clean` + `run_esp_cmd cl` help: display this help text - `bash esp-idf-tools-cmd.sh help` - `bash esp-idf-tools-cmd.sh h` - `bash esp-idf-tools-cmd.sh -h` - `bash esp-idf-tools-cmd.sh --help` + `run_esp_cmd help` + `run_esp_cmd h` + `run_esp_cmd -h` + `run_esp_cmd --help` uninstall: uninstall esp-idf - `bash esp-idf-tools-cmd.sh uninstall` + `run_esp_cmd uninstall` Usage: