0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Gitでタブキー補完をできるようにする(git-completion)

Last updated at Posted at 2024-11-28

git-completionを使って、ブランチ名の入力時にタブキー補完をできるようにします。
VSCodeのGUIを使っている場合はあまり使わないんですかね。

環境

cat /etc/redhat-release
> Red Hat Enterprise Linux release 9.5 (Plow)

git --version
> git version 2.43.5

手順

  • git-completionの取得
curl -o ~/.git-completion.bash https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash
source ~/.git-completion.bash
  • 設定
sudo vi ~/.bashrc

if [ -f ~/.git-completion.bash ]; then
  . ~/.git-completion.bash
fi

source ~/.bashrc
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?