Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git branch color terminal ubuntu

# Git branch in prompt.
force_color_prompt=yes
color_prompt=yes
parse_git_branch() {
 git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* (.*)/(1)/'
}
if [ "$color_prompt" = yes ]; then
 PS1='${debian_chroot:+($debian_chroot)}[33[01;32m]u@h[33[00m]:[33[01;34m]w[33[01;31m]$(parse_git_branch)[33[00m]$ '
else
 PS1='${debian_chroot:+($debian_chroot)}u@h:w$(parse_git_branch)$ '
fi
unset color_prompt force_color_prompt
Comment

PREVIOUS NEXT
Code Example
Shell :: download from gdrive link command line 
Shell :: shrink terminal current directory 
Shell :: getkirby install editor 
Shell :: bash list environment variables 
Shell :: git find files with conflicts, list files with conflict 
Shell :: remove git ignore cache 
Shell :: terminator default terminal 
Shell :: how to install keras ocr 
Shell :: unistall filezilla ubuntu 
Shell :: certutil md5 windows 
Shell :: linux apt pcap 
Shell :: how to find current active yarn resource manager 
Shell :: extract ros bag file data to csv 
Shell :: Build Blender git commands 
Shell :: ubuntu 20 install lib32ncurses5 
Shell :: read fingerprint ssh-keygen 
Shell :: linux awk print last column 
Shell :: linux remove folder 
Shell :: hyper v powershell windows 
Shell :: get all containers in linux 
Shell :: sudo /opt/lampp/lampp start not working on linux 
Shell :: how to close serveice on perticular port number 
Shell :: sqlite3 attempt to write a readonly database 
Shell :: update flutter command 
Shell :: capacitor 3 camera 
Shell :: bastighg 
Shell :: commit convention 
Shell :: cmd delete folder 
Shell :: list usb devices linux tty 
Shell :: gdown Access denied with the following error 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =