Skip to content

Instantly share code, notes, and snippets.

@fordhurley
Created September 2, 2015 13:36
Show Gist options
  • Save fordhurley/cec431b144b21e9772fd to your computer and use it in GitHub Desktop.
Save fordhurley/cec431b144b21e9772fd to your computer and use it in GitHub Desktop.
Place this in your aliases file (or .bashrc) to have lorem ipsum text available at your fingertips.
# Lorem ipsum text. Optional argument is the number of sentences to
# produce. Each sentence will be separated by an empty line.
# Requires `pip install fake-factory`.
function lorem() {
local repeat=$1
if [[ -n $repeat ]]; then
repeat="-r $repeat"
fi
PYTHONIOENCODING=UTF-8 python -m faker text $repeat
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment