How to use FileWatcher to run script in WebStorm

47 views Asked by At

I have a script in .restart file and I'd like to run it on save in WebStorm. I'm trying to use file watcher for that but all the time I'm getting error:

/bin/zsh $HOME$/.restart
/bin/zsh: can't open input file: $HOME$/.restart

My configuration of FileWatcher:

Program: zsh
Arguments: $HOME$/.restart

I tried many different combinations of slashes and variables both from WebStorm and global env variables. Non of them seems to work.

What am I missing here?

1

There are 1 answers

0
K. Tys On

Just put absolute path to the file in the argument