treeWatch.sh


I did this presentation about git in school & wanted to show a couple things you can do with plumbing commands.
For that I needed an automatically refreshing tree view of the .git-directory (the actual repository).
No biggie, simple script:
        #!/bin/bash
        while true
        do
            clear
            tree -a $1
            sleep $2
        done
        
The first parameter is the directory to watch, the second specifies the number of seconds until the next refresh.

Code on GitHub