anki-code / anki-code/xontrib-sh
Support updating environment variables
Abierto
good first issue
- Lenguaje dominante
- Python
- Estrellas
- 65
- Forks
- 3
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
The idea:
1. Get `prev_env = $(env)` before running the sh-command
2. Run sh-command. Example `! export QWE=123`.
3. Add saving env at the end of command: `! export QWE=123 ; env > /tmp/post_env`.
4. By comparing `prev_env` and `post_env` update the environment in the current session i.e. `$QWE='123'`
## For community
⬇️ **Please click the 👍 reaction instead of leaving a `+1` or 👍 comment**
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.