Search
 
SCRIPT & CODE EXAMPLE
 

CPP

git branch in my bash prompt

parse_git_branch() {
     git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* (.*)/ (1)/'
}
export PS1="u@h [33[32m]w[33[33m]$(parse_git_branch)[33[00m] $ "
Comment

PREVIOUS NEXT
Code Example
Cpp :: fast i/o in c++ 
Cpp :: list conda environments 
Cpp :: print set c++ 
Cpp :: loop over multidimensional array c++ 
Cpp :: std::pair c++ access element 
Cpp :: print 2d vector c++ 
Cpp :: how to print list in c++ 
Cpp :: right side pattern triangle c++ 
Cpp :: how to print the address of an object in c++ 
Cpp :: ue4 spawn actor c++ 
Cpp :: sleep in cpp 
Cpp :: Count set bits in an integer c++ 
Cpp :: colourful text in c++ 
Cpp :: how to declare comparator for set of pair 
Cpp :: should i learn c or c++ 
Cpp :: error: ‘memset’ was not declared in this scope in cpp 
Cpp :: Name one example of a “decider” program that you regularly encounter in real life. 
Cpp :: can you verify adsense no ssl certificate 
Cpp :: how to interface c++ in haxe 
Cpp :: program to convert int to int array c++ 
Cpp :: how to use comparator funtion in priority queue in c++ 
Cpp :: border radius layout android xml 
Cpp :: how can I replace a pattern from string in c++ 
Cpp :: finding no of unique characters in a string c++ 
Cpp :: quotation in c++ string 
Cpp :: locate specific string letters c++ 
Cpp :: c++ show current time 
Cpp :: switch in c++ 
Cpp :: c++ code for selection sort 
Cpp :: counting sort c++ 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =