mirror of
https://github.com/jimeh/git-aware-prompt.git
synced 2026-02-19 13:36:38 +00:00
updated readme
This commit is contained in:
12
README.md
12
README.md
@@ -1,4 +1,4 @@
|
|||||||
# Git Branch in Prompt
|
# Git Aware Prompt
|
||||||
|
|
||||||
Working with Git and it's great branching/merging features is amazing. Constantly switching branches can be confusing though as you have to run `git status` to see which branch you're currently on.
|
Working with Git and it's great branching/merging features is amazing. Constantly switching branches can be confusing though as you have to run `git status` to see which branch you're currently on.
|
||||||
|
|
||||||
@@ -9,20 +9,18 @@ I based this project mainly on Aaron Crane's [solution][1].
|
|||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
If you `cd` to a Git working directory, you will see the current Git branch name displayed in your terminal prompt like so:
|
If you `cd` to a Git working directory, you will see the current Git branch name displayed in your terminal prompt. When you're not in a Git working directory, your prompt works like normal.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
When you're not in a Git working directory, your prompt works like normal.
|
|
||||||
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
Clone the project to a `.bash` folder in your home directory:
|
Clone the project to a `.bash` folder in your home directory:
|
||||||
|
|
||||||
git clone git://github.com/jimeh/git-branch-in-prompt.git ~/.bash
|
git clone git://github.com/jimeh/git-aware-prompt.git ~/.bash
|
||||||
|
|
||||||
Edit your `~/.bash_profile` or `~/.profile` and add the following to the top:
|
Edit your `~/.profile` or `~/.bash_profile` and add the following to the top:
|
||||||
|
|
||||||
export DOTBASH=~/.bash
|
export DOTBASH=~/.bash
|
||||||
source $DOTBASH/main.sh
|
source $DOTBASH/main.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user