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

Blockchain Integration Into Public Digital Good

The Role of Blockchain in Digital Public Goods: Use Cases and Innovations

Digital public goods, such as open-source software, IT models, and standards, are the backbone of our digital infrastructure.

Read More

Role of Open Source and Digital Public Goods

Boost DPG Development: How Open Source Maximizes Efficiency

The emergence of open-source workflow solutions has revolutionized workflow management.

Read More

Digital Public Goods Alliance Strategy 2021–2026

Boosting Digital Infrastructure with Digital Public Goods

The United Nations (UN) defines a roadmap for Digital Public Goods (DPGs) as open-source software, open data, open AI models, open standards, and open content.

Read More

Best Practices for Software Testing

Power of Software Testing: Why Software Teams Use It Effectively

In the modern digital era, where software is used in nearly every aspect of everyday life, the importance of software testing cannot be emphasized.

Read More