[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shell aliases as shell-commands

From: Sebastian Tennant
Subject: Re: Shell aliases as shell-commands
Date: Wed, 21 Jan 2009 15:26:06 +0000
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux)

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!


reply via email to

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