用python語言自定義mac命令

weixin_33782386發表於2017-12-12

.bash_profile 檔案增加PATH=$PATH變數,冒號分割

sudo vi ~/.bash_profile
source ~/.bash_profile
export PATH=$PATH:$M2_HOME/bin:$HOME/bin:/Users/bestfei/Documents/fei/python/tomcat/fyctl/bin:/Users/bestfei/Documents/fei/python/tomcat/fytomcatctl/bin
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home
#export JAVA_HOME=/Library/Java
#export PATH=$JAVA_HOME/bin:$PATH


export PATH=$PATH:/usr/bin/geckodriver

export M2_HOME=/Users/bestfei/Documents/tools/apache-maven-3.5.0
export PATH=$PATH:$M2_HOME/bin:$HOME/bin:/Users/bestfei/Documents/fei/python/tomcat/fyctl/bin:/Users/bestfei/Documents/fei/python/tomcat/fytomcatctl/bin

相關文章