From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: Shell aliases as shell-commands Date: Wed, 21 Jan 2009 11:40:02 +0100 Organization: Universitaet Jena Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1232534455 19063 80.91.229.12 (21 Jan 2009 10:40:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Jan 2009 10:40:55 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 21 11:42:08 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LPaX4-0004Yr-NL for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Jan 2009 11:42:02 +0100 Original-Received: from localhost ([127.0.0.1]:48143 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPaVn-0006uH-DD for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Jan 2009 05:40:43 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2.glorb.com!feeder.erje.net!news-1.dfn.de!news.uni-jena.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 9 Original-NNTP-Posting-Host: pax07e3.mipool.uni-jena.de Original-X-Trace: lc03.rz.uni-jena.de 1232534402 30816 141.35.13.42 (21 Jan 2009 10:40:02 GMT) Original-X-Complaints-To: abuse@uni-jena.de Original-NNTP-Posting-Date: Wed, 21 Jan 2009 10:40:02 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (berkeley-unix) Cancel-Lock: sha1:sH7Rx9mz853dXSFUR7xjlghS8PM= Original-Xref: news.stanford.edu gnu.emacs.help:166209 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:61529 Archived-At: 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.