From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: thierry.volpiatto@gmail.com Newsgroups: gmane.emacs.help Subject: Re: eshell and quick cd Date: Sun, 29 Mar 2009 15:30:01 +0200 Message-ID: <873acw78yu.fsf@tux.homenetwork> References: <878wmqmclw.fsf@online.de> <87prg0r7rh.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 1238333914 32061 80.91.229.12 (29 Mar 2009 13:38:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 29 Mar 2009 13:38:34 +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 15:39:52 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 1LnvEt-0006Fg-IY for geh-help-gnu-emacs@m.gmane.org; Sun, 29 Mar 2009 15:39:51 +0200 Original-Received: from localhost ([127.0.0.1]:45292 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LnvDW-0007IO-6D for geh-help-gnu-emacs@m.gmane.org; Sun, 29 Mar 2009 09:38:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LnvCM-0007BJ-2Q for help-gnu-emacs@gnu.org; Sun, 29 Mar 2009 09:37:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LnvCG-00079D-O8 for help-gnu-emacs@gnu.org; Sun, 29 Mar 2009 09:37:13 -0400 Original-Received: from [199.232.76.173] (port=36898 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LnvCG-000790-Df for help-gnu-emacs@gnu.org; Sun, 29 Mar 2009 09:37:08 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:48341 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LnvCF-0008M8-WF for help-gnu-emacs@gnu.org; Sun, 29 Mar 2009 09:37:08 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LnvC7-0007sD-IC for help-gnu-emacs@gnu.org; Sun, 29 Mar 2009 13:36:59 +0000 Original-Received: from 60.211.85-79.rev.gaoland.net ([79.85.211.60]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 29 Mar 2009 13:36:59 +0000 Original-Received: from thierry.volpiatto by 60.211.85-79.rev.gaoland.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 29 Mar 2009 13:36:59 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 49 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 60.211.85-79.rev.gaoland.net Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUHAwNfJRBVTESlTym0 RB/OwKFivhZqAAAACXBIWXMAAAsSAAALEgHS3X78AAAACXZwQWcAAAAwAAAAMADO7oxXAAABeElE QVQ4y3VTW47CMAyMwwUyTfYfUvG/wfC/ET4B0t7/KmsHurRgXFVVPRm/xglhsRj2+npW98G3+Amp tS5BXxl3SqzcXGRuEyf7n5lPA9jXetNPRhE7EJkzfz8YWnIgBSwW95TK4H79/t4GINKNADWj4PgA DiJX/ZxFDzDXeb4oYMw7kNUvyMzcaj3ioICG4hCKEShkPpwQ49Q05nnkGAQLDFDdExjm0qpowBYA Wi61bDlFU1GW0WbY2dSJYX5ZD2S0AiZL+rPyE19TpMzP2IvNWly+NkuWNgD4pO2oL73IQXoSyVX2 NHna7tgadWRXoCdvf2guqEcvGHqZwE520iRD0/QCYiiTE+U21w1Qxvg6iSp9fbIiDCnSAelDkCVF Vn+HekqXzRybwJ40xF4DMRG6SWGK9G1lYzHSxLYEm05GWbpJCB6A9tb9A3BGn2XdwJbS/WuInj74 4QNF8sVFdP3vl+5tgYp4Ev7fyrfFMkXgElDgV4uV/w8TWEeLCIGJ/AAAACV0RVh0Y3JlYXRlLWRh dGUAMjAwOC0wNS0zMVQyMDoxNDoyMiswMDowMAS7YjIAAAARdEVYdGpwZWc6Y29sb3JzcGFjZQAy LHVVnwAAACB0RVh0anBlZzpzYW1wbGluZy1mYWN0b3IAMngyLDF4MSwxeDFJ+qa0AAAAJXRFWHRt b2RpZnktZGF0ZQAyMDA3LTEwLTI4VDE2OjA4OjQ4KzAwOjAw44nspgAAAABJRU5ErkJggg== User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.91 (gnu/linux) Cancel-Lock: sha1:oF0tTLd+dDwPdlaSFIVzJfBix0o= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:63372 Archived-At: henry atting writes: > 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? May be write your function in a little script instead of writing it in your .zshrc/.bashrc. You can also easily create alias with eshell. -- A + Thierry Volpiatto Location: Saint-Cyr-Sur-Mer - France