Auto-complete Git Commands and Branch Names in Terminal

When in a repository directory, use tab(Tab key on keyboard) to automatically complete Git commands and branches like normal bash commands.How to get this working:First you need to get  git-completion.bash  script (see it here) and put it in your home directory:curl -L https://raw.github.com/uditiiita/Git-Scripts/master/git-completion.bash -o ~/.git-completion.bashOpen the Terminal and if the file ~/.bash_profile does not... [Read More]

Add GIT Branch Name to Prompt In MAC Terminal

When in a repository directory, show the name of the currently checked out Git branch in the prompt.How to get this working:First you need to get  git-branch.bash  script (see it here) and put it in your home directory:curl -L https://raw.github.com/uditiiita/Git-Scripts/master/git-branch.bash -o ~/.git-branch.bashNotes: Explanation of the above file you just downloaded.In the above file... [Read More]

Change status bar appearance in iOS7

Setting status bar style globally:In Info.plist set 'View controller-based status bar appearance' as NOIn AppDelegate add[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];to- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { ...... ...} This solution works for iOS 7.For cases when you want to set the style differently in each view controller:If you have an embedded navigation controller created... [Read More]