Skip to content

Instantly share code, notes, and snippets.

@settermjd settermjd/custom.zsh
Created Dec 12, 2017

What would you like to do?
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;
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
You can’t perform that action at this time.