Created
September 2, 2015 13:36
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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