![]() A select few work across all major OS's, like Powershell. These days, most shells work across a variety of Unix-based operating systems, like bash, zsh, or fish. It's important to note from the beginning that git tab completion is shell-dependent, not OS-dependent. It seems many are coming here to figure out how to enable tab completion on their OS. ![]() Note that this sources the git prompt-string script as well, since it resides in the same directory. _git_dir="/Applications/Xcode.app/Contents/Developer/usr/share/git-core" Thus, I have the following insertion for my ~/.bashrc: # Git shell completion and prompt string on macOS Or you can always brute-force search your machine and grab some coffee: $ find / -type f -name git-completion.bash 2>/dev/null When I run git config as follows, git reports a setting which comes from a gitconfig file located in the same directory as my git-completion.bash: $ git config -show-origin -listįile:/Applications/Xcode.app/Contents/Developer/usr/share/git-core/gitconfig credential.helper=osxkeychain
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |