有没有办法通过bash_profile“资源”而无需重启终端?
发布时间:2020-12-16 01:36:16 所属栏目:安全 来源:网络整理
导读:参见英文答案 How to reload .bash_profile from the command line?14个 我经常需要对?/ .bash_profile进行更改,我必须重新启动终端才能传播更改.是否有任何命令我可以运行来重新提供我的?/ .bash_profile? 是的,你可以运行: source ~/.bash_profile 要么
参见英文答案 >
How to reload .bash_profile from the command line?14个
我经常需要对?/ .bash_profile进行更改,我必须重新启动终端才能传播更改.是否有任何命令我可以运行来重新提供我的?/ .bash_profile?
是的,你可以运行:
source ~/.bash_profile 要么: . ~/.bash_profile 这将重新加载/重新获取当前shell中的.bash_profile. 为方便起见,我将此命令放在?/ .bash_profile中: alias reprofile='source ~/.bash_profile' 然后我只需输入reprofile或repro TAB. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |