I have the following ruby script, foo
, that I'm watching with fswatch
:
#!/usr/bin/env ruby
puts "hello world!"
on the command line the output looks like:
➜ ~/w/s/g/m/todo master ✗ fswatch bin/* | xargs -I {} bundle exec {}
hello world!
^C
Which seems all good, and as expected, I'm wondering, how would I tell fswatch
to clear the screen before running the the bundle exec
? Or write some sort of bash script to achieve the same goal or watching my files and running my commands but clearing the screen before-hand?