gpt4 book ai didi

linux - 自动采购许可证

转载 作者:太空宇宙 更新时间:2023-11-04 11:47:53 25 4
gpt4 key购买 nike

在 Linux 中,我使用了一些有许可证的工具。每次调用 shell 时,我都会手动获取许可证。我应该把命令放在哪里,这样当我调用 shell 时,它会自动获取许可证。假设命令看起来像这样:

源工具_许可证

最佳答案

如果可以将许可证作为环境变量添加,您是否尝试将其添加到用户主目录中的 .bash_profile 中?

export tool_license=/home/user/license

或者你可以试试这个 https://superuser.com/questions/591321/execute-a-command-every-time-terminal-is-open .

关于linux - 自动采购许可证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57037679/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com