Terminal启动登录 shell 而不是“普通”交互式 shell,因为终端本身不是从从登录 shell 继承环境的 shell 运行的。
普通交互式shell源码.bashrc;登录 shell 获取第一个.profile, .bash_login, 或.bash_profile它找到的内容。我建议.bashrc直接从采购.bash_profile。
当您/bin/bash直接运行时,您的别名会起作用,因为这不会启动另一个登录 shell,因此.bashrc会按预期获取。