I have defined some aliases and function snippets int some of my profile files, say, ~/.zprofile. But Emacs never reads them. There is already a topic about it. However, it's not enough:
- It cannot
sourcecompletely.zshrcand would emit errors forcompinitand the like. - Seems this approach only works for environment VARIABLES.
So in shell-mode or run command in Emacs(Alt-!) the effect is still different with that in terminal(emulators).
So is there any way to deal with the problem? Thanks.