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
source
completely.zshrc
and would emit errors forcompinit
and 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.