Re: [Fish-users] "watch" in fish
On 19-02-19 15:20:02 +0100, David Croll wrote: Dear fish-y people, I wonder what fish 3.0 will bring - I still run 2.7.1. In the meanwhile, I wonder when the "watch" command will be implemented in fish. In my system "watch" is provided by procps-ng package and it works everywhere irrespective of the shell the user runs. I don't get why you need a fish implementation of watch and the other thread already mentions this is out of scope. -- Regards Jagan PUBKEY: https://j605.tk/pgp signature.asc Description: PGP signature ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] "watch" in fish
On Tue, Feb 19, 2019, at 09:20, David Croll wrote: > In the meanwhile, I wonder when the "watch" command will be implemented > in fish. > > Define a function: > > function f > echo "f" > end > > Then: > > watch -n 10 "f" > > does not work, as watch runs in bash, and bash doesn't know of the fish > function I've just defined. > > I can only do > > while true > f > sleep 10 > end > > as a workaround. Hello. I hope that the "watch" command does not get implemented in fish, as that would be needless duplication. Regarding "I can only do ... as a workaround", there are other workarounds. You can write a script and you can save the function as explained in https://unix.stackexchange.com/a/474633. function f echo f end funcsave f watch --exec fish -c f ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
[Fish-users] "watch" in fish
Dear fish-y people, I wonder what fish 3.0 will bring - I still run 2.7.1. In the meanwhile, I wonder when the "watch" command will be implemented in fish. Define a function: function f echo "f" end Then: watch -n 10 "f" does not work, as watch runs in bash, and bash doesn't know of the fish function I've just defined. I can only do while true f sleep 10 end as a workaround. https://unix.stackexchange.com/questions/474628/define-function-in-fish-use-it-with-watch David _______ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users