-
Notifications
You must be signed in to change notification settings - Fork 0
README
fang duan edited this page Jul 9, 2023
·
1 revision
-
只支持Linux和Bash (因为服务器一般用的linux和bash)
-
rtx binary始终安装到 /usr/local/bin/rtx
-
如果system_wide: true, RTX_DATA_DIR 设置为 /opt/rtx/ 如果system_wide: false, RTX_DATA_DIR 设置为 ~/.local/share/rtx 默认为true
-
如果system_wide: true, /etc/profile.d/rtx.sh
# Ansible managed
if [ -f "/usr/local/bin/rtx" ]; then
export RTX_DATA_DIR=/opt/rtx
eval "$(/usr/local/bin/rtx activate bash)"
fi
如果system_wide: false, 则将以下内容追加加到~/.bashrc
if [ -f "/usr/local/bin/rtx" ]; then
export RTX_DATA_DIR=$HOME/.local/share/rtx
eval "$(/usr/local/bin/rtx activate bash)"
fi