Skip to content

Git status information on your Bash shell prompt.

License

Notifications You must be signed in to change notification settings

cdevinesr/gitline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

gitline

Git status information on your Bash shell prompt.

Instructions for Use

  1. Place gitline.sh in your preferred location (example suggests your home directory).
  2. Modify your .bashrc to include something like this:
source ~/gitline.sh

build_ps1() {
    local git_line=$(generate_gitline)
    export PS1="\[\e[1;36m\]\u@\h \[\e[1;31m\]\w${git_line}\[\e[1;36m\]\$\[\e[0m\] "
}

export PROMPT_COMMAND="build_ps1"

About

Git status information on your Bash shell prompt.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages