From b57d59f35a412838e0bc18ab730f649a69ca6974 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Thu, 25 Jun 2015 08:25:44 -0500 Subject: [PATCH] Add Repeat Yourself as a zsh til. --- README.md | 1 + zsh/repeat-yourself.md | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 zsh/repeat-yourself.md diff --git a/README.md b/README.md index 17c77cb..539180e 100644 --- a/README.md +++ b/README.md @@ -158,6 +158,7 @@ smart people at [Hashrocket](http://hashrocket.com/). - [Clear The Screen](zsh/clear-the-screen.md) - [Create A File Descriptor with Process Substitution](zsh/create-a-file-descriptor-with-process-substitution.md) - [Killing A Frozen SSH Session](zsh/killing-a-frozen-ssh-session.md) +- [Repeat Yourself](zsh/repeat-yourself.md) - [Saying Yes](zsh/saying-yes.md) - [Search History](zsh/search-history.md) - [Switch Versions of a Brew Formula](zsh/switch-versions-of-a-brew-formula.md) diff --git a/zsh/repeat-yourself.md b/zsh/repeat-yourself.md new file mode 100644 index 0000000..203e8aa --- /dev/null +++ b/zsh/repeat-yourself.md @@ -0,0 +1,14 @@ +# Repeat Yourself + +Use the `repeat` command to repeat yourself. You can repeat yourself a +number of times + +``` +$ repeat 5 say Hello World +``` + +or you can repeat yourself indefinitely + +``` +$ repeat -1 say Hello World +```