别名脚本没有运行`source~ / .bash_profile`

时间:2017-05-25 08:31:11

标签: bash shell alias

我使用以下命令修改了.bash_profile脚本:

alias shortcuts-update='nano ~/.bash_profile && source ~/.bash_profile && say profile shortcuts have been updated'

这是一种动态添加别名的好方法。 nano效果很好但source ~/.bash_profile没有效果!我必须在保存的任何更改之前手动运行它.bash_profile生效。谁能告诉我为什么?

0 个答案:

没有答案
相关问题