anki-code / anki-code/xontrib-sh
Support updating environment variables
Đang mở
good first issue
- Ngôn ngữ chính
- Python
- Star
- 65
- Fork
- 3
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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**
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.