pluveto / upgit

Another upload hub that supports clipboard. It works well with Typora, Snipaste, VSCode.
MIT License
535 stars 44 forks source link

mac 如何设置环境变量 #23

Closed DingyuanGao closed 1 year ago

DingyuanGao commented 2 years ago

upgit 存放地址为 /Users/Username/Library/Upgit/upgit

环境变量中如何配置?

pluveto commented 2 years ago

https://github.com/pluveto/upgit#config-via-environment-variables

DingyuanGao commented 2 years ago

https://github.com/pluveto/upgit#config-via-environment-variables

To access it from anywhere, add its directory to the PATH environment variable.

不好意思,没描述清楚,我的问题是macos的path的环境变量如何配置呢

pluveto commented 2 years ago

https://www.cnblogs.com/bjlhx/p/10623907.html

------------------ 原始邮件 ------------------ 发件人: Panghh @.> 发送时间: 2022年2月17日 12:33 收件人: pluveto/upgit @.> 抄送: pluveto @.>, Comment @.> 主题: Re: [pluveto/upgit] mac 如何设置环境变量 (Issue #23)

https://github.com/pluveto/upgit#config-via-environment-variables

To access it from anywhere, add its directory to the PATH environment variable.

不好意思,没描述清楚,我的问题是macos的path的环境变量如何配置呢

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

pluveto commented 2 years ago

若可执行文件名是 /Users/Username/Library/Upgit/upgit,则其目录是 dir = /Users/Username/Library/Upgit,把 dir 追加到 PATH 即可