anki-code / anki-code/xontrib-sh

Support updating environment variables

未关闭
#7 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
good first issue
主要语言
Python
星标
65
派生
3
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。