1、打开终端 vim ~/.bash_profile alias ll='ls -alF' alias la='ls -A' alias l='ls -CF 保存完成之后: source ~/.bash_profile 2、设置开启终端加载命令 由于重启终端自动加载~/.zshrc文件,所以在.zshrc加上source ~/.bash_profile 在~/.zshrc文件最后,增加一行: vim ~/.zshrc source ~/.bash_profile