help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: eshell and quick cd


From: thierry . volpiatto
Subject: Re: eshell and quick cd
Date: Sun, 29 Mar 2009 15:30:01 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.91 (gnu/linux)

henry atting <nsmp_01@online.de> 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 <nsmp_01@online.de> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]