MAC 打开.bash_profile

简介: 启动终端Terminal进入当前用户的home目录输入cd ~创建.bash_profile输入touch .bash_profile编辑.
  1. 启动终端Terminal

  2. 进入当前用户的home目录

    输入cd ~

  3. 创建.bash_profile

    输入touch .bash_profile

  4. 编辑.bash_profile文件

    输入open -e .bash_profile

  5. 保存文件,关闭.bash_profile

  6. 更新刚配置的环境变量

    输入source .bash_profile

目录
相关文章
Mac每次都要执行source ~/.bash_profile配置的环境变量才生效
Mac每次都要执行source ~/.bash_profile配置的环境变量才生效
847 2
|
关系型数据库 MySQL iOS开发
干货文:Mac 中 .bash_profile 和 .zshrc 的区别
干货文:Mac 中 .bash_profile 和 .zshrc 的区别
2339 1
|
Linux Shell
mac/linux执行受限:bash: ./install.sh: Permission denied
mac/linux执行受限:bash: ./install.sh: Permission denied
|
Linux Shell
mac/linux提示bash: telnet: command not found
mac/linux提示bash: telnet: command not found
|
Java Shell Linux
[醉了]解决重启mac但是bash_profile不生效的彻底解决方法
[醉了]解决重启mac但是bash_profile不生效的彻底解决方法
506 0
|
Shell iOS开发 MacOS
mac ~/.bash_profile 重启失效
mac ~/.bash_profile 重启失效
373 0
|
Shell 数据安全/隐私保护
profile,bashrc,.bash_profile,.bash_login,.profile,.bashrc,.bash_logout浅析 Part 2
profile,bashrc,.bash_profile,.bash_login,.profile,.bashrc,.bash_logout浅析 Part 2
233 0
|
Shell Linux Go
Linux profile1,bashrc,.bash_profile,.bash_login,.profile,.bashrc,.bash_logout浅析 Part1
Linux profile1,bashrc,.bash_profile,.bash_login,.profile,.bashrc,.bash_logout浅析 Part1
280 0
|
Shell 开发工具
mac添加bash_profile环境变量
mac添加bash_profile环境变量
316 0
|
Shell
MAC修改.bashrc/.bash_profile无效,默认的用户配置文件是.zshrc,
MAC修改.bashrc/.bash_profile无效,默认的用户配置文件是.zshrc,
511 0