Skip to content
fang duan edited this page Jul 9, 2023 · 1 revision
  1. 只支持Linux和Bash (因为服务器一般用的linux和bash)

  2. rtx binary始终安装到 /usr/local/bin/rtx

  3. 如果system_wide: true, RTX_DATA_DIR 设置为 /opt/rtx/ 如果system_wide: false, RTX_DATA_DIR 设置为 ~/.local/share/rtx 默认为true

  4. 如果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
Clone this wiki locally