Macos osx-启动iTerm时运行命令

Macos osx-启动iTerm时运行命令,macos,iterm,Macos,Iterm,在Mac中打开终端时,如何自动运行命令 我尝试在bash.rc文件中编写它,但似乎不起作用。.bash\u profile是您要添加命令的文件

在Mac中打开终端时,如何自动运行命令


我尝试在bash.rc文件中编写它,但似乎不起作用。

.bash\u profile是您要添加命令的文件