Skip to content

Instantly share code, notes, and snippets.

View wdawson's full-sized avatar

Wils Dawson wdawson

View GitHub Profile
@oneamtu
oneamtu / gtest.cmake
Created September 16, 2012 20:38
How to add google test as an downloadable external project
########################### GTEST
# Enable ExternalProject CMake module
INCLUDE(ExternalProject)
# Set default ExternalProject root directory
SET_DIRECTORY_PROPERTIES(PROPERTIES EP_PREFIX ${CMAKE_BINARY_DIR}/third_party)
# Add gtest
# http://stackoverflow.com/questions/9689183/cmake-googletest
ExternalProject_Add(
@emgoeddel
emgoeddel / branch-prompt
Last active July 20, 2018 15:16
Lizzie's bash prompt
#Paste into .bashrc for git branch in the prompt!
#Plus colors: username in green, @ in default, hostname in blue, pwd in purple, $ and remaining text in default.
#Looks good if you're using black background, white/gray text.
#If you're in a git repository, branch appears in cyan.
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ \1/'
}
# Custom bash prompt via kirsle.net/wizards/ps1.html with some manual