By default on a Mac after installing Xcode you get a copy of git installed. When you use it on the command line, you don’t get any auto-completing of git commands or branch names. By following the below steps, you’ll get both.
Get the File Git Completion File
Download Git Completion File from Git Source Code
curl -o ~/.git-completion.bash \ https://raw.github.com/git/git/master/contrib/completion/git-completion.bash
Get the File Git Prompt
Download Git Prompt from Git Source Code
curl -o ~/.git-prompt.sh \ https://raw.github.com/git/git/master/contrib/completion/git-prompt.sh
Load the File
The .git-completion.bash file needs to be loaded every time bash starts up.
Add it to your .bashrc file:
source ~/.git-completion.bash source ~/.git-prompt.sh
If you want your bash prompt to show you what branch you are in whenever you are in a git repository, then add this to you .bashrc after the ‘source’ from above:
export PS1='\h:\W \u$(__git_ps1 " (%s)")\$ '
Your prompt will now look like this when inside a git project:
iguana:photomind collin (Reminders)$
Tip: To refresh your .bashrc without having to close Terminal and open it again just type:
Acknowledgements: Much of this knowledge came from my coworker, Jason Meridth, but I’ve tweaked his post to show you directly where to get the needed file to make the ps1 prompt exactly the same as the default Mac prompt. Jason Meridth: [git ps1] (http://blog.jasonmeridth.com/2010/05/22/git-ps1.html)
A true revelation, it seems to me, will only emerge from stubborn concentration on a solitary problem. I am not in league with inventors or adventurers, nor with travelers to exotic destinations. The surest – also the quickest – way to awake the sense of wonder in ourselves is to look intently, undeterred, at a single object. Suddenly, miraculously, it will reveal itself as something we have never seen before.
I’ve been fortunate enough to attend WWDC for the last three years. I make it a point to meet as many people as possible. While talking to attendees I noticed a common theme this year that was significantly different from what I heard at WWDC 2010.
WWDC 2010 Common Developer Theme
This is my first year attending. I’m new to iOS development. My company sent me here because we had our iOS app built by a third party and it crashes and has leaks. I am now in charge of fixing it.
Companies were reluctant to get into iOS development and had been burned by third parties.
WWDC 2012 Common Developer Theme
I’ve been doing iOS development for 1+ years. There are several other iOS developers on my team. My company is hiring more iOS developers; we can’t find enough. I also have my own app(s) in the app store.
It’s a great time to be an iOS developer! Companies are hiring and hopefully some developer’s personal apps will be great successes for them. Great news for iOS developers!
Back in August, PhotoMind for iPhone/iPad was featured as a Video App Demo on TUAW and as the App of the Day on Lifehacker. This dramatically affected sales. I saw an increase of nearly 400% for that month! I was hoping the increased exposure would raise the average sales for the following months. It didn’t.
Version 1.x of PhotoMind was designed by me (I’m a software developer, not a designer). The app does it’s job very well; I’ve not received any crash reports and have had very few bugs reported. People that use the app like it. The problem, I believe, is the app wasn’t very pretty and had a few design inefficiencies. Not to mention, the icon looked amateur (I made that too).
Testing My Hypothesis
I paid a designer and totally revamped PhotoMind for version 2.0. It has a cleaner and more attractive design. I actually like looking at the icon on my home screen. It is faster and more responsive. I really like how it has turned out. It was approved by Apple last night and I’ll be releasing it to the App Store tomorrow; Friday, December 16. Let’s see how this affects my sales. It wouldn’t hurt to be featured on some blogs again either ;)
I had a co-worker ask me if I thought Apple was just being silly by suing Samsung over the Galaxy Tab. “Isn’t competition healthy?”, he asked. Should Apple really be wasting its time on this?
Apple wants to protect its products and its image. If people are confused about a product or think they are using an Apple product when they are not, it could be damaging to their image when it doesn’t behave as expected (insert Android weakness here).
Examples of Confusion
I was at Google I/O 2011 when Vic Gundotra held up what I thought was an iPad and announced it was the Samsung Galaxy Tab 10.1 and we’d all be getting one. I’m a huge Apple fan and own two iPads, yet I was confused!
Later that day, I walked into the San Francisco Apple Store with the Galaxy Tab box under my arm. As I approached the register to ask a question, the Apple employee at the register pointed at the Gaxaxy Tab box and asked me if that was all I was going to buy today. Even a seasoned Apple employee was confused by the product design!
I think Apple has good reason to be going after Samsung.
Speaking of Google’s new Facebook-like news feed called “the stream”.
“We think long-term, four to five years from now, the system should be putting items in there not just from your friends, but things that Google knows you should be seeing.” Vic Gundotra, Senior vice president of social for Google
Sounds scary. Who will determine what I should be seeing?
If you are an iOS developer and have an app in the App Store, you need to get App Sales Mobile!
Some App Sales Mobile Awesome Features
- Display daily app sales info with currency conversion to your local currency
- Download and translate all of your app reviews (until now, I didn’t even know some of my reviews existed because they only show up under their respective country’s App Store)
App Sales Mobile is an open source application you’ll have to compile and install on your iOS device yourself.
I’ve been waiting for Apple to update their Airport Extreme so I can finally get rid of my problematic Netgear (2005) wireless router. The Airport Extreme was updated this week, but Apple didn’t say what was new. I decided to search Google to see if anyone else knew what was updated. At the time of my search, the new Airport Extreme didn’t have any search results telling me what was new on Google.
I decided to search Twitter with their native app on my iPhone (better search experience on the iPhone than Google too). I just searched ‘Airport Extreme’ and tons tweets appeared with links to articles about what’s new in the recently updated Airport Extreme (they say it has a 2.8X power boost to Wi-Fi).
Google is still the better search engine, but when it come to finding realtime information, Twitter proved better results.
Everyone knows that debugging is twice as hard as writing a program in the first place. So if you’re as clever as you can be when you write it, how will you ever debug it? - Brian Kernighan