[Top][All Lists]

[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 <address@hidden>,
Sebastian Tennant  <address@hidden> wrote:
>Quoth Michael Heerdegen <address@hidden>:
>> 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!

And suppose you use, say, tcsh.  

  How to get (at least) dired "!" to use tcsh, read its aliasaes, etc?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]