From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: henry atting Newsgroups: gmane.emacs.help Subject: Re: eshell and quick cd Date: Sun, 29 Mar 2009 11:35:46 +0200 Organization: literaturlatenight Message-ID: <87prg0r7rh.fsf@online.de> References: <878wmqmclw.fsf@online.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1238319727 30603 80.91.229.12 (29 Mar 2009 09:42:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 29 Mar 2009 09:42:07 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 29 11:43:25 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 1LnrY4-0003H6-Vn for geh-help-gnu-emacs@m.gmane.org; Sun, 29 Mar 2009 11:43:25 +0200 Original-Received: from localhost ([127.0.0.1]:54183 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LnrWh-0005XO-JN for geh-help-gnu-emacs@m.gmane.org; Sun, 29 Mar 2009 05:41:59 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2.glorb.com!news.unit0.net!news.uni-stuttgart.de!rz.uni-karlsruhe.de!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 41 Original-NNTP-Posting-Host: port-92-195-233-1.dynamic.qsc.de Original-X-Trace: online.de 1238319321 20790 92.195.233.1 (29 Mar 2009 09:35:21 GMT) Original-X-Complaints-To: abuse@einsundeins.com Original-NNTP-Posting-Date: Sun, 29 Mar 2009 09:35:21 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) Cancel-Lock: sha1:mP16hnGTP+ahX9hIofjuvCV52Pc= Original-Xref: news.stanford.edu gnu.emacs.help:168081 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:63370 Archived-At: On Sa, Mär 28 2009, thierry.volpiatto@gmail.com wrote: > Hi, > you have a very nice file called esh-toggle.el, you will find here: > > ftp://ftp.newartisans.com/pub/emacs/ > > It should be integrated in emacs, this file is in the git repo of eshell > also but i can't find back url. > > henry atting writes: > >> I recently encountered `wcd' [1], which provides a way to quickly change >> directories. For example if I am in ~/a/b and want to cd to ~/c/def a >> `wcd def' would suffice if def is a unique directory name. >> Since only `cd' is allowed to change directories you have to write a >> function in your ~/.zshrc (in my case) like that: >> >> function wcd >> { >> $HOME/bin/wcd.exe $* >> . $HOME/bin/wcd.go >> } >> >> Is there already a builtin function of eshell which does the same? Or, >> if not, how can I tell eshell to use wcd? >> >> henry >> >> ___ >> >> [1] http://www.xs4all.nl/~waterlan/ >> esh-toogle is very handy, thanks. But if I want to stay on the eshell command-line I still would like eshell to use the above mentioned function. How can it be implemented in eshell? henry