Skip to content
 
 

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

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages