Looked up in the. Bash_profile configuration then the source method, tried, but the current terminal is valid, when the computer restarts or shuts down the terminal is invalid, had to look at the Mac profile code
# system-wide. Profile forSh1)if[-x/usr/libexec/Path_helper]; Then eval '/usr/libexec/path_helper-S ' # # #将环境路径进行添加fiif["${bash-no}"!="No" ]; Then [-R/ETC/BASHRC] &&. /etc/BASHRC # # #很明显这个是加载etcThe use of/BASHRC although I do not understand-what does R mean fi### imitate above I create a new file Aliasdiy as followsif[-x/etc/Aliasdiy]; Then [-r/etc/aliasdiy] &&. /etc/Aliasdiyfijava_home="/library/java/javavirtualmachines/jdk1.7.0_75.jdk/contents/home"Class_path="$JAVA _home/lib"PATH=".: $PATH: $JAVA _home/bin"The following is the Aliasdiy content---this will permanently take effect. Alias MySQL='/usr/local/mysql/bin/mysql 'Alias mysqladmin='/usr/local/mysql/bin/mysqladmin 'Alias Ll='Ls-alf'alias La='ls-a'
Mac Setup ll and other alias and will take effect permanently