Zsh
Run a Function Every Time …
If you have a set of tasks you do every time you change directories, e.g. changing to a new project, here is a quick way to automate those tasks. The key component is the chpwd_functions=() function. This function, short for change present working directory, runs every time the directory changes. …