Configure command line to see useful git information
2014 09 Apr

How to configure your command line to see useful git information in the prompt? And add colors, drush auto-completion and shortcuts too!

Every developer configures ones machine in a manner that assists them in the development workflow, and loves to learn and share new and better ways to do things.

This blog is to share with some of the new members of Innoraft’s team, and anybody who lands here, bash configurations that help you customize your command line prompt in useful ways. In here you will find answers to the below questions.

  • How to add color to your command prompt?
  • How to see useful git information, like the current branch you are on and the status of your repository, on the command line?
  • How you setup and use drush shortcuts for drupal development?

Though these are really simple configurations they can add a lot of value to your development workflow, as shown in the video below. What I love most about these configurations is how they empower (almost nudge) you to use git branching and other features to the most.

Here is a screencast I put together to show you how it works.

A sample bash configuration file with the necessary configurations can be seen here - https://gist.github.com/sumeetpareek/9907382

You can learn more about each configuration change below

Go ahead and try them. I am sure you would love the ease of drupal development with such a setup. Do share awesome tricks you have to make you command line more useful :-)

Latest Blogs

drupal

UNDERSTANDING THE MOBILE APP DEVELOPMENT LIFECYCLE

Mobile app development is not rocket science in today's day and age.

Read More

drupal

ENTERPRISE WEBSITE DEVELOPMENT

It's essential that companies have a presence online in the digitalised global economy.

Read More

drupal

Why Choose Drupal Over Any Other CMS?

The dilemma of choosing the more suitable CMS from a range of possible CMS options can be overwhelming

Read More