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: eshell and quick cd Date: Sat, 28 Mar 2009 06:37:47 +0100 Organization: literaturlatenight Message-ID: <878wmqmclw.fsf@online.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1238218855 3644 80.91.229.12 (28 Mar 2009 05:40:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 28 Mar 2009 05: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 Sat Mar 28 06:42:13 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 1LnRJ5-000880-FS for geh-help-gnu-emacs@m.gmane.org; Sat, 28 Mar 2009 06:42:11 +0100 Original-Received: from localhost ([127.0.0.1]:41873 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LnRHi-0001k5-5z for geh-help-gnu-emacs@m.gmane.org; Sat, 28 Mar 2009 01:40:46 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!newshub.sdsu.edu!feeder.erje.net!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!t-online.de!inka.de!rz.uni-karlsruhe.de!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-NNTP-Posting-Host: port-92-195-24-131.dynamic.qsc.de Original-X-Trace: online.de 1238218644 31546 92.195.24.131 (28 Mar 2009 05:37:24 GMT) Original-X-Complaints-To: abuse@einsundeins.com Original-NNTP-Posting-Date: Sat, 28 Mar 2009 05:37:24 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) Cancel-Lock: sha1:K3Fpc9eyhO80/DkSZJJa/PJ/Qd8= Original-Xref: news.stanford.edu gnu.emacs.help:168061 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:63349 Archived-At: 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/