Skip to content

Cj-bc/watchfile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

watchfile watches files in real time

Watchfile display given file. If there's any changes, rewrite it.

usage

$ watchfile file.txt
# screen will be cleard, and cat that file from (1,1)
# and when you edit and save the file, watchfile will rewrite it.

install

homebrew

$ brew tap Cj-bc/watchfile
$ brew install watchfile

when you use hoembrew, it might not work and say 'Permission denied.' This is known big bug and this is caused because watchfile itself($(brew --prefix)/Cellar/watchfile//bin/watchfile) has no permission to execute. I'm not sure why it's occured, but the easy solution is to run: $ chmod 755 $(brew --prefix)/Cellar/watchfile/<version>/bin/watchfile

bpkg

$ bpkg install Cj-bc/watchfile -g

from source code

$ git clone https://github.com/Cj-bc/watchfile.git
$ cd watchfile
$ mv watchfile.sh /usr/local/bin/watchfile

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages