简体   繁体   English

Mac终端在启动时运行脚本,如何停止?

[英]mac terminal running a script on startup, how to stop?

I created a bash_aliases file and put it in bash_profile, but the problem is every time I start the terminal, it is running that script. 我创建了一个bash_aliases文件并将其放在bash_profile中,但是问题是每次启动终端时,它都在运行该脚本。 Any ideas how to stop it? 任何想法如何阻止它?

That is what bash_profile is supposed to do, run when terminal is started. 那是bash_profile应该做的,在终端启动时运行。 If you don't want a script to run, remove its entry from bash_profile. 如果您不想运行脚本,请从bash_profile中删除其条目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM