Appium之设置环境变量.bash_profile
2017-06-19 09:11
316 查看
设置环境变量
vi ~/.bash_profile
进入vim模式
回车,进入模式选择
英文模式 按e进入编辑模式
添加代码:
export M2_HOME=/Users/xiatian/apache-maven-3.5.0 export PATH=$PATH:$M2_HOME/bin export ANDROID_HOME=/Users/xiatian/android-sdk-macosx export PATH=$PATH:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools
按esc退出编辑
输入
:wq保存并退出
保存环境变量
source ~/.bash_profile
相关文章推荐
- 设置环境变量(修改.bash_profile文件)
- linux环境变量设置 以及 source命令 Linux 之 /etc/profile、~/.bash_profile 等几个文件的执行过程 Linux 设置环境变量
- mac laravel 环境变量设置bash_profile
- linux环境变量设置,/etc/profile,/etc/bashrc和.bash_profile的区别(作用域)
- 转:关于环境变量,profile ,bash_profile ,bashrc
- mac pro 环境变量的配置 (当不存在 .bash_profile 文件的时候)
- 学习鸟哥私房菜--linux bash 的环境变量ps1设置
- zsh与bash设置环境变量的不同点
- linux的export命令和profile,.bashrc,bash.profile各种环境变量文件
- 设置环境变量 ---- bash和tcsh
- Linux 系统启动文件,bash 启动文件,设置环境变量的位置
- 关于环境变量,profile ,bash_profile ,bashrc
- mac .bash_profile环境变量汇总
- bash 脚本编程十三 环境变量的设置函数
- zsh与bash设置环境变量的不同点
- 使 .bash_profile 文件中环境变量马上生效
- 使 .bash_profile 文件中环境变量马上生效的命令
- 我的Linux笔记3--bash的PATH环境变量设置
- /etc/profile,/etc/environment,.bash_profile及.bashrc等与环境变量有关的文件的比较
- Ubuntu /etc/profile 环境变量设置