Terminal 设置 path、alias

1
vi ~/.bash_profile
1
2
3
alias rn='react-native'
alias ro='react-native run-ios'
export PATH=$PATH:/usr/local/mysql/bin
1
esc
1
:wq!
1
source ~/.bash_profile

vi 编辑器命令备忘

打开一个文件

1
vi  ~/.bash_profile

跳到行首

1
0

跳到行尾

1
shift + 4