Redirect warning to stderr and unset temporary shell procedure

This commit is contained in:
martin.gano
2020-11-07 12:45:54 +01:00
parent e2716690bc
commit 304cff9f75
4 changed files with 52 additions and 45 deletions

View File

@@ -140,9 +140,9 @@ enable_autocomplete() {
if [ -n "$ZSH_VERSION" ]
then
autoload -Uz compinit && compinit -u
eval "$(env _IDF.PY_COMPLETE=source_zsh idf.py)"
eval "$(env _IDF.PY_COMPLETE=source_zsh idf.py)" || echo "WARNING: Failed to load shell autocompletion!"
else
eval "$(env _IDF.PY_COMPLETE=source_bash idf.py)"
eval "$(env _IDF.PY_COMPLETE=source_bash idf.py)" || echo "WARNING: Failed to load shell autocompletion!"
fi
}
@@ -151,3 +151,4 @@ enable_autocomplete
unset realpath_int
unset idf_export_main
unset enable_autocomplete