Horje
bash add git branch to prompt Code Example
bash add git branch to prompt
# Git branch in prompt.
parse_git_branch() {
    git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\u@\h \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ "




Shell

Related
powershell pip CERTIFICATE_VERIFY_FAILED Code Example powershell pip CERTIFICATE_VERIFY_FAILED Code Example
npm warn ws butterfly install peer dependencies Code Example npm warn ws butterfly install peer dependencies Code Example
convert x-ray dicom to png Code Example convert x-ray dicom to png Code Example
add branch to bash-prompt Code Example add branch to bash-prompt Code Example
how to reset local git credentials of android studio Code Example how to reset local git credentials of android studio Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9