Horje
app to see git branches in ubuntu Code Example
app to see git branches in ubuntu
parse_git_branch() {
 git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
if [ "$color_prompt" = yes ]; then
 PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[01;31m\] $(parse_git_branch)\[\033[00m\]\$ '
else
 PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w$(parse_git_branch)\$ '
fi
# THE SIX LINES BELOW are the default prompt and the unset (which were in the original .bashrc)
#if [ "$color_prompt" = yes ]; then
#    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
#else
#    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
#fi
#unset color_prompt force_color_prompt




Shell

Related
Stderr: VBoxManage.exe: error: UUID Code Example Stderr: VBoxManage.exe: error: UUID Code Example
youtube-dl Video Selection:: Code Example youtube-dl Video Selection:: Code Example
mikrotik address list log into file Code Example mikrotik address list log into file Code Example
copy scp from Windows to Ubuntu with credentials Code Example copy scp from Windows to Ubuntu with credentials Code Example
how to run sql script in docker container Code Example how to run sql script in docker container Code Example

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