1.创建并以 TextEdit 的方式打开 ~/.bash_profile 文件
touch ~/.bash_profile;
open -t ~/.bash_profile
2.新增环境变量
export PATH="$HOME/.rbenv/bin:$PATH"
3.让以上所做的配置生效
source ~/.bash_profile

相关文章:

  • 2021-06-22
  • 2022-12-23
  • 2021-08-14
  • 2021-08-17
  • 2022-12-23
  • 2022-12-23
  • 2022-01-09
  • 2022-02-09
猜你喜欢
  • 2021-11-11
  • 2021-09-02
  • 2021-12-31
  • 2022-12-23
  • 2022-01-16
  • 2021-11-21
  • 2022-01-25
相关资源
相似解决方案