Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我编写了一个自定义 shell 脚本函数,并放入我的.profile.
.profile
当我从终端运行执行函数的命令时,它工作得很好,但是当我从 MacVim 运行命令时,它什么也不做。.profile当我从 Macvim 运行命令时,我的函数没有运行。
如何让这个工作?
把你的功能放在~/.bashrc. 这适用于交互式非登录 shell。
~/.bashrc