understand linux shell hooks as used by direnv

874 Views Asked by At

I would very much like to understand how Linux shell hooks work... (bash in particular) Could any one point me to the right documentation or explain the main idea behind this concept?

I've looked into the direnv documentation that states the following

For direnv to work properly it needs to be hooked into the shell. Each shell has its own extension mechanism. Once the hook is configured, restart your shell for direnv to be activated.

I searched through the bash manual tying to find something related to hooking, without success. Is there a blog, tutorial or some other piece of information on how the shell could be extended?

0

There are 0 best solutions below