GNU watch - how do I make it read my environment (aliases, functions, etc)

Posted by Artem Russakovskii on Server Fault See other posts from Server Fault or by Artem Russakovskii
Published on 2010-03-17T23:09:41Z Indexed on 2010/03/17 23:11 UTC
Read the original article Hit count: 438

Filed under:
|
|
|
|

This one has been bugging me for a while: I want to use the marvelous GNU watch command to run a few custom aliases and functions that are defined in my .bashrc, but it is never able to run anything except bash built-ins or binaries.

watch -d foo

The output is always: foo: command not found

How can I make it inherit my environment or use the .bashrc?

Thank you.

© Server Fault or respective owner

Related posts about gnu

Related posts about watch