|
From: | Michael Heerdegen |
Subject: | Re: Shell aliases as shell-commands |
Date: | Wed, 21 Jan 2009 11:40:02 +0100 |
User-agent: | Gnus/5.11 (Gnus v5.11) Emacs/22.1 (berkeley-unix) |
It is possible to use your aliases with M-x shell-command, I do it all the time. Do the following: * in you bash config (.bashrc): shopt -s -q expand_aliases This makes bash aliases work in non-interactive bashs. * In your emacs config (.emacs): (setenv "BASH_ENV" "~/.bashrc") This tells emacs that non-interactive bash subprocesses should load .bashrc.
[Prev in Thread] | Current Thread | [Next in Thread] |