Skip to content

Commit

Permalink
翻译脚本内source环境变量
Browse files Browse the repository at this point in the history
  • Loading branch information
yaocccc committed Apr 10, 2023
1 parent abcf40a commit f3204e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DEF/translate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# 利用chatgpt翻译选中的文本
# https://github.com/j178/chatgpt

# 载入环境变量 (apiKey, proxyEndpoint)
source ~/.zshrc
msgid=$((RANDOM%1000))

notify-send -r $msgid "󰊿 AI translator" "."; sleep 0.3
Expand Down

0 comments on commit f3204e0

Please sign in to comment.