anki-code / anki-code/xontrib-sh

Support updating environment variables

Aperta
#7 0 commenti 1 reazione 0 assegnatari Vedi su GitHub
good first issue
Lingua principale
Python
Stelle
65
Fork
3
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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**

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.