在.bash_profile中配置git自动完成

时间:2013-02-08 23:17:03

标签: git autocomplete .bash-profile nano

我无法在我的bash配置文件中安装git auto completion。 我附上了一个版本的bash脚本。有谁知道为什么我保存并退出nano时我的git中的自动完成功能无效?谢谢! enter image description here

1 个答案:

答案 0 :(得分:2)

您需要注销并重新登录才能强制运行.bash_profile。

或尝试立即行动,运行

source~ / .git-completion.bash

source~ / .bash_profile也可以使用

相关问题