Skip to content

Hook25/pretty_branch_ps1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pretty_branch_ps1

Custom compiled rust pretty printer for git branch

Usage

Add to ~/.bashrc the following:

parse_git_branch() {
    branch=$(git branch --show-current 2> /dev/null | pretty_branch_ps1)
    [ $branch ] && echo -n " $branch " || echo -n " "
}

And change the PS1similarly to:

export PS1="$Black$On_White \W$Blue$On_White\$(parse_git_branch)$Black$On_White> $White "

Note that pretty_branch_ps1 should be in PATH

About

Custom compiled rust pretty printer for git branch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages