Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Before start make sure where is git-completion script is installed. Usually it's located in following paths:
- - /etc/bash_completion.d/git
- - /usr/share/bash-completion/completions/git
- ___
- - Open ~/.bashrc file in text editor (I prefer nano):
- ``` console
- $ nano ~/.bashrc
- ```
- - Append to file one of these lines (depends on where you've dscovered script):
- ``` bash
- source /usr/share/bash-completion/completions/git
- # or
- source /etc/bash_completion.d/git
- ```
- - Reload ~/.bashrc (or terminal):
- ``` console
- $ source ~/.bashrc
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement