LoginSignup
3
0

More than 5 years have passed since last update.

gitコマンドを効率的に扱おう!! git-completion.bashの導入法!!

Posted at

はじめに

gitのコマンドを補完してくれるgit-completion.bashを知ったので導入します!!
参考Qiita:https://qiita.com/panti310/items/9e266a2913a8558f4679

導入

sudo find / -name git-completion.bash
/home/users/.oh-my-zsh/plugins/gitfast/git-completion.bash
/home/users/.zgen/robbyrussell/oh-my-zsh-master/plugins/gitfast/git-completion.bash

vim ~/.zshrc
plugins=(
  git
  git-completion.bash
  zsh-syntax-highlighting
)
source ~/.zshrc

基本的なコマンドの補完はできたけど、ブランチとかは補完できない・・・

導入その2

cp /home/users/.oh-my-zsh/plugins/gitfast/git-completion.bash ~/.git-completion.bash
source ~/.git-completion.bash

できた!!

それでもできない・・・

  • そもそもbranchはある? git branchで確認してみては?

参考資料

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0