title: Is there a way to get my emacs to recognize my bash aliases and custom functions when I run a shell command?
body: <p>In my shell environment I have aliases and custom functions. When I am in an instance of emacs (I always use <code>emacs -nw</code>) and I execute a shell command (<code>M-!</code>) I cannot use them. This makes sense since I imagine it launches it's own subshell to do these... but is there a way (maybe in my <code>.emacs</code>) to get this to work? Perhaps even if it involved sourcing an environment by default before executing any shell command given?</p>