[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Shell aliases as shell-commands
From: |
David Combs |
Subject: |
Re: Shell aliases as shell-commands |
Date: |
Tue, 17 Feb 2009 15:14:20 +0000 (UTC) |
In article <mailman.5443.1232551479.26697.help-gnu-emacs@gnu.org>,
Sebastian Tennant <sebyte@smolny.plus.com> wrote:
>Quoth Michael Heerdegen <michael_heerdegen@web.de>:
>> It is possible to use your aliases [and functions] 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.
>
>Damn that's a good tip. Guess I should tell the folks over at
>emacs.sources... there was me thinking I'd written something useful!
>
>Sebastian
And suppose you use, say, tcsh.
How to get (at least) dired "!" to use tcsh, read its aliasaes, etc?
Thanks,
David