Terminal is not an app that provokes joy and wonder in the hearts of its users. Select “Git” in the list, choose your iconographyĦ notes AugPut a little Awesome into OS X’s Terminal Move plugin file to ~/Library/Application\ Support/TextMate/PlugIns/Ĭlick “Advanced” tab, “Shell Variables” tabĪdd “TM_GIT” path variable pointing to your git executable (mine is /usr/local/git/bin/git) Osascript -e ‘tell app “TextMate” to reload bundles’ Git clone git:///git-tmbundle/mainline.git git.tmbundle Project+ plugin currently supports Subversion, Git, Mercurial, Svk and Bazaar.Ĭd ~/Library/Application\ Support/TextMate/Bundles This walkthrough is Git-specific, but you can swap the Git stuff for your preferred version control system and it should work the same way. This, for me, completes TextMate’s transformation into the perfect IDE. Enjoy!Ġ notes Novemsource/version control badges in textmateįor whatever reason, it took me literally years to get this working, but finally, in my TextMate project drawer I can see my Git file statuses. So typing “git sta” and then hitting tab will auto-complete to “git status”. You can check out that post here.Īs a bonus, the git-completion also allows you to use tab completion for git commands. I’m using the color aliases that I setup in my previous post about pimping OS X’s terminal, so your mileage may vary with that command depending on your setup.
So either insert that into your existing PS1 line, or make a line that looks something like this (mine shown for example):Įxport PS1="\" The part you need to add to your prompt for the git branch state is: If you’ve already customized your bash prompt, you will have a line that starts with “export PS1=”. usr/local/git/contrib/completion/git-completion.bashĢ. # Set git autocompletion and PS1 integration Add the following lines to your ~/.bashrc or ~/.bash_profile (change the path to your git-completion.bash and bash_completion files if necessary): If you’re working in a directory that is not attached to a git repo, it shows nothing (except of course, your regular bash prompt stuff).ġ.
#Install simbl mods#
These mods will show your current git branch as part of your bash command prompt, as well as an asterisk to denote uncommitted changes, like such: