让bash下git命令自动完成的文件

时间:2018-02-14 07:20:54
【文件属性】:
文件名称:让bash下git命令自动完成的文件
文件大小:16KB
文件格式:ZIP
更新时间:2018-02-14 07:20:54
bash,git 下载本附件,放到你的用户主目录,在你的.bash_profile或者.bashrc,或者.profile里加入: if [ -f ~/.git-completion.bash ]; then . ~/.git-completion.bash fi 然后source一下或者重新登录,你的git就支持自动补完了,输入 git com,然后按两次tab键,即见效。
【文件预览】:
git-completion.bash

网友评论

  • 官网有墙不好下,这里下了可用。
  • 真的自动补全了!!很好用 ,,可以不用zshell了。