[Fish-users] Running a fish function with the 'watch' command

2018-08-25 Thread Luciano ES
I have a ~/.config/fish/functions/tasks.fish script that is actually a 'tasks' function. I don't need to invoke the script directly. I just run 'tasks' on the command line and it does its job. You know, a very trivial fish-shell practice. But that doesn't work with the 'watch' command: $ watch

Re: [Fish-users] Running a fish function with the 'watch' command

2018-08-25 Thread Greg Reagle
I don't see any reason to convert to Bash. watch(1) (on my system) executes its argument with "sh -c" unless the -x option is given in which case it uses exec(2). Read the man page. One options is to make whatever function you want to watch into a command (fish script in a file). Make sure t