Advertisement
Guest User

Untitled

a guest
May 19th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. Before start make sure where is git-completion script is installed. Usually it's located in following paths:
  2.  
  3. - /etc/bash_completion.d/git
  4. - /usr/share/bash-completion/completions/git
  5. ___
  6.  
  7. - Open ~/.bashrc file in text editor (I prefer nano):
  8. ``` console
  9. $ nano ~/.bashrc
  10. ```
  11.  
  12. - Append to file one of these lines (depends on where you've dscovered script):
  13. ``` bash
  14. source /usr/share/bash-completion/completions/git
  15. # or
  16. source /etc/bash_completion.d/git
  17. ```
  18.  
  19. - Reload ~/.bashrc (or terminal):
  20. ``` console
  21. $ source ~/.bashrc
  22. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement