I am currently creating a program that adds the current user shell depending on the project it is working on, by defining aliases and functions for each project. These aliases and functions can and certainly have the same name as, for example, cdproj , which will be cd for the project root.
I want to remove previously defined aliases and functions when a project changes (before (re) defining aliases and functions for another project. I know that I can delete an alias with unalias both bash and zsh, but how would I do the same for function?
bash shell zsh
greg0ire Jul 24 2018-11-11T00: 00Z
source share