I have tried the examples found to get Git auto-completion working on El Capitan, however none of the examples work for me.I installed bash-completion with Homebrew ( brew install bash-completion).This is my /.bashprofile currently (as you can see, i've tried a few things): CRMPiccosMacBook:etc crmpicco$ cat /.bashprofilealias ll='ls -lG'alias composer='php /usr/local/bin/composer.phar'#if -f $(brew -prefix)/etc/bashcompletion ; then#. $(brew -prefix)/etc/bashcompletion#fiif -f `brew -prefix`/etc/bashcompletion.d/git-completion.bash ; then. `brew -prefix`/etc/bashcompletion.d/git-completion.bashfi#source /usr/local/git/contrib/completion/git-completion.bash#GITPS1SHOWDIRTYSTATE=true#export PS1='u@mbp w$(gitps1)$ 'So, if I go into my directory with the cloned Git repo and type git checkout m and hit TAB I get nothing (when expecting master to be pre-filled).When I run a source on it, it doesn't exist - however it's installed. CRMPiccos-MacBook:signup crmpicco$ brew install bash-completionWarning: bash-completion-1.31 already installedCRMPiccos-MacBook:signup crmpicco$ source /etc/bashcompletion.d/git-completion.bash-bash: /etc/bashcompletion.d/git-completion.bash: No such file or directory. As a note for users, like me, who already updated to macOS Catalina, which deprecated bash, yet ended up at this answer as a top result.For macOS Catalina+, which uses zsh, there are a few other requirements. Download both scripts: curl -o git-completion.bash -o git update your /.zshrc with: zstyle ':completion:.:.:git:.' script /.zsh/git-completion.bashfpath=(/.zsh $fpath)autoload -Uz compinit && compinit.
![]() ![]()
Free Office for Mac tutorials. If you're using Office for Mac, the Office for Mac team has provided great series of tutorials and how-to guides to help you get started and even learn advanced skills: If you're just getting started, check out the Office 2016 for Mac Quick Start Guides, which provide an overview of each Office for Mac product. If you (hopefully) upgraded the default shell on your Mac to the latest version of Bash, then this is the right version to use. If you still use Bash 4.0 or lower, you have to use version 1 of bash-completion (brew install bash-completion), however, remember that in this case many completion scripts won’t work on your system!
![]()
Gradle tab completion script for BashA tab completion script that works for Bash. Relies on the BSD md5 command on Mac and md5sum on Linux, so as long as you have one of those two commands, this should work. Usage $ gradle TABandroidDependencies check init propertiesassemble clean installDebug signingReportassembleDebug connectedCheck installDebugTest tasksassembleDebugTest connectedInstrumentTest installRelease uninstallAllassembleRelease dependencies lint uninstallDebugbuild dependencyInsight lintDebug uninstallDebugTestbuildDependents deviceCheck lintRelease uninstallReleasebuildNeeded help projects wrapper$ gradle cTABcheck clean connectedCheck connectedInstrumentTestGives tab completions relevent to the current Gradle project (if any). Install curl -L -s -o /gradle-tab-completion.bashThen add to your /.bashprofile: source /gradle-tab-completion.bashIt will be kinda slow the first time you use it. But after that, it'll be super fast, because everything's cached based on the md5sum of your build.gradle files. CreditsThanks to for Linux support!
![]() Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |