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-in 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?
foo? A shell script? An alias? What if you run thatwatchcommand from your prompt? – lorenzog Mar 17 '10 at 23:18foocan be a custom alias or a bash function, not just a simple call to a binary. – Artem Russakovskii Mar 17 '10 at 23:34
– Artem Russakovskii Mar 17 '10 at 23:35x () { xmllint -format $* ;}