I have this need to let Emacs recognize all the shell environment variables.
The current setup: I use VirtualBox and launch Emacs there to remotely access server files via the Tramp mode. When i do c-x c-f, and type
$RESOURCE_HOME/foo.bar
Emacs can't recognize this path, even if this is a valid path on the server -- $RESOURCE_HOME is a self-defined var.
I know this question's been answered there: How do I make Emacs recognize bash environment variables for compilation? But there are so many self-defined variables that I don't want to write them manually.
I wonder if it's possible to solve it in a better way. NOTE: i'm using Tramp mode, so please clarify your ideas saying vbox machine vs. server machine. Thanks!