Skip to content

Instantly share code, notes, and snippets.

@settermjd
Created December 12, 2017 11:13
Show Gist options
  • Save settermjd/fd457af22510330af0c64226b8852c7b to your computer and use it in GitHub Desktop.
Save settermjd/fd457af22510330af0c64226b8852c7b to your computer and use it in GitHub Desktop.
Custom ZSH functions for working with the ownCloud documentation
# Simple function to search the ownCloud docs for a text string
function search_docs() {
if (( $# == 0 )); then
echo "Not enough arguments supplied."
echo " usage: search_docs <string to find>"
return -1;
fi
echo "Searching ownCloud documentation for: '$1'"
grep -rin "$1" $DOCS_HOME/*_manual/ --include="*rst"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment