命令打开编辑
open ~/.bash_profile
修改的变量代码
echo "export THEOS=~/theos" >> ~/.zprofile
export SSHPASS='alpine'
sshpass -e ssh -Y localhost
export MonkeyDevDeviceIP=alpine
export MonkeyDevDevicePort=2222
export THEOS="/opt/theos"
export PATH="/opt/theos/bin/:$PATH"
生效代码
source ~/.bash_profile
报错
/Users/XXX/.bash_profile:4: bad assignment
原因
export后,其他的语句中不能含有空格
网友评论