esp-idf/tools/export_utils
Frantisek Hrbata 6f3241a34b fix(tools): Upgrade shell detection & simplify autocompletion
Explicitly set shell type in export.sh for bash and zsh

-Most of the issues reported with the updated export scripts are related
 to shell detection. Since we already know the shell type for commonly
 used ones like bash or zsh, we can pass the shell type directly to the
 activate script. This should hopefully resolve the shell detection
 problems for most users.

 This update also modifies the shell type detection to rely solely on
 psutil.Process().cmdline() rather than psutil.Process().exe(). This
 change aims to resolve permission issues that may occur if, for example,
 the Python binary has certain capabilities assigned.

Move shell completion to the init script

- Currently we are expanding the autocompletion in the activate script and
 adding the expanded commands into the init script. To avoid
 concerns about shell versions, move the entire expansion to the init
 script.
2024-09-18 13:03:26 +02:00
..
activate_venv.py fix(tools): Upgrade shell detection & simplify autocompletion 2024-09-18 13:03:26 +02:00
console_output.py fix(tools): Upgrade shell detection & simplify autocompletion 2024-09-18 13:03:26 +02:00
shell_types.py fix(tools): Upgrade shell detection & simplify autocompletion 2024-09-18 13:03:26 +02:00
utils.py fix(tools): Upgrade shell detection & simplify autocompletion 2024-09-18 13:03:26 +02:00