Tag Archives: bash

Fixing Git Bash Completion

I didn’t know until yesterday about the __git_ps1 command. You can include it in your bash PS1 like this:

and whenever you’re in a git directory, it will include the current branch in your prompt, along with a few other goodies. I did this and it didn’t work. It just displayed __git_ps1 in my… Read More »

Using the dirstack in bash

I’m writing this post because its one of the most useful tools in bash and I always forget the syntax. Its hard to Google for and the piece of paper I write it down on always gets lost. And asking my advanced bash friends to remind me often indicates that they are unaware of this… Read More »