bat-extras icon indicating copy to clipboard operation
bat-extras copied to clipboard

batwatch: $command does not exist

Open yochananmarqos opened this issue 5 years ago • 3 comments

I'm using the bat-extras-git AUR package on Manjaro GNOME.

$ batwatch sensors
[batwatch error]: 'sensors' does not exist

Running watch sensors works as expected.

yochananmarqos avatar Apr 28 '20 16:04 yochananmarqos

The batwatch command was initially meant to watch files, but it shouldn't be too difficult to add support for commands.

Would an interface like batwatch -c 'sensors' be fine?

Or maybe something like batwatch -c -- sensors, which would lend itself well to being aliased?

eth-p avatar Apr 28 '20 16:04 eth-p

Oh, I didn't realize it was designed only for files. Support for commands would be neat!

yochananmarqos avatar Apr 28 '20 17:04 yochananmarqos

Support for this was added in 164142dd4342564a644aaa41e3ac4d73008ce7c0.

To avoid breaking compatibility, it was added as: batwatch -x [command] [args...]

eth-p avatar Apr 02 '21 23:04 eth-p