Skip to content

Commit 4f80560

Browse files
committed
Add Watch This Run Repeatedly as a zsh til.
1 parent 01e138e commit 4f80560

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
6969
- [Clear The Screen](zsh/clear-the-screen.md)
7070
- [Killing A Frozen SSH Session](zsh/killing-a-frozen-ssh-session.md)
7171
- [Search History](zsh/search-history.md)
72+
- [Watch This Run Repeatedly](zsh/watch-this-run-repeatedly.md)
7273
- [Where Are The Binaries?](zsh/where-are-the-binaries.md)
7374

7475
## About

zsh/watch-this-run-repeatedly.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Watch This Run Repeatedly
2+
3+
I usually reach for a quick bash for loop when I want to run a particular
4+
process a bunch of times in a row. The `watch` command is another way to
5+
run a process repeatedly.
6+
7+
```
8+
watch rspec spec/some/test.rb
9+
```
10+
11+
The default is 2 seconds in between subsequent executions of the command.
12+
The period can be changed with the `-n` flag though:
13+
14+
```
15+
watch -n 2 rspec spec/some/test.rb
16+
```

0 commit comments

Comments
 (0)