mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 10:47:19 +02:00
Fix error when ZSH_VERSION
is unset.
Merges https://github.com/espressif/esp-idf/pull/6587
This commit is contained in:
@ -141,7 +141,7 @@ idf_export_main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
enable_autocomplete() {
|
enable_autocomplete() {
|
||||||
if [ -n "$ZSH_VERSION" ]
|
if [ -n "${ZSH_VERSION-}" ]
|
||||||
then
|
then
|
||||||
autoload -Uz compinit && compinit -u
|
autoload -Uz compinit && compinit -u
|
||||||
eval "$(env _IDF.PY_COMPLETE=source_zsh idf.py)" || echo "WARNING: Failed to load shell autocompletion!"
|
eval "$(env _IDF.PY_COMPLETE=source_zsh idf.py)" || echo "WARNING: Failed to load shell autocompletion!"
|
||||||
|
Reference in New Issue
Block a user