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 tasks task1
Every 2.0s: tasks task1
sh: 1: tasks: not found

$ watch 'tasks task1'
Every 2.0s: tasks task1
sh: 1: tasks: not found

Almost giving up on fish for this particular job, I thought I'd convert 
the script to Bash or something. But I'd hate to do that. I wish I never 
had to use Bash again. Or maybe I'll have to write another identical 
fish script that is not a function? Do I have to do that, or is there 
another way?

TIA

-- 
Luciano ES
>>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to