Skip to content

Instantly share code, notes, and snippets.

View iPenguin's full-sized avatar

Brian Milco iPenguin

View GitHub Profile
@iPenguin
iPenguin / CMakeLists.txt
Created November 25, 2012 04:55
CMake docbook cross platform documentation
# Appends the cmake/modules path to MAKE_MODULE_PATH variable.
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH})
include(DocbookGen)
configure_file(${CMAKE_SOURCE_DIR}/docs/index.docbook.in
${CMAKE_CURRENT_BINARY_DIR}/index.docbook)
set(docbookFile "${CMAKE_CURRENT_BINARY_DIR}/index.docbook")
@iPenguin
iPenguin / bashrc
Last active September 29, 2022 00:39
git output in a bash prompt (PS1)
#The following lines should be added to your .bashrc file to use the git-output.awk file
SEP="║"
SEP2="•"
function parse_git_output {
path=$(pwd)
# Don't do git status over networked paths.
# It kills performance, and the prompt takes forever to return.
if [[ $path =~ "/net/" ]]; then
return