# Append to the end of the file $echo "export AS='name'" >> ~/.bash_profile # Update shell $source ~/.bash_profile
这个第一个命令将添加您想要的文件(或使用文本编辑器),第二个更新的新的变量的shell.