From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: dkcombs@panix.com (David Combs) Newsgroups: gmane.emacs.help Subject: Re: Shell aliases as shell-commands Date: Tue, 17 Feb 2009 15:14:20 +0000 (UTC) Organization: Public Access Networks Corp. Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1234885301 9905 80.91.229.12 (17 Feb 2009 15:41:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Feb 2009 15:41:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 17 16:42:56 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 1LZS5v-0002cM-HM for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Feb 2009 16:42:47 +0100 Original-Received: from localhost ([127.0.0.1]:45398 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZS4b-00040q-77 for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Feb 2009 10:41:25 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: panix1.panix.com Original-X-Trace: reader1.panix.com 1234883660 21238 166.84.1.1 (17 Feb 2009 15:14:20 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Tue, 17 Feb 2009 15:14:20 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Original-Xref: news.stanford.edu gnu.emacs.help:166854 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:62162 Archived-At: In article , Sebastian Tennant wrote: >Quoth Michael Heerdegen : >> 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