Torsten: `command` runs programs, and `command cd` won't change the cwd in
fish. You'd need `builtin cd` to get the fish builtin, side-stepping the cd
function. But see below.

Robert: You may be using `builtin cd`, which doesn't log directory history.
What does `type cd` say?


On Tue, May 21, 2013 at 5:25 PM, Robert Carpenter <rob...@robacarp.com>wrote:

> I've been meaning to look into this for months now, but haven't gotten
> around to it.
>
> I'm either totally misunderstanding the directory history or mine is
> broken:
>
> rob ~> dirh
> /Users/rob
> rob ~> ./Desktop
> rob ~/Desktop> dirh
> /Users/rob/Desktop
> rob ~/Desktop>
>
> The only thing I can think of that might have altered this behavior is
> that I have a function listening to the cwd event.
>
> How should I go about sorting this?
>
> Thanks
> Robert
>
>
> On Tue, May 21, 2013 at 7:58 AM, Torsten Grust <
> torsten.gr...@uni-tuebingen.de> wrote:
>
>> On 21 May 2013, at 14:47, John Chludzinski wrote (with possible
>> deletions):
>> > When using ksh or bash I typically alias cd to pushd.  When I do that
>> in my
>> > config.fish file I get an infinite recursion of cd calling pushd
>> calling cd
>> > calling pushd calling ...
>>
>> You may find 'command' helpful in such situations:
>>
>>         http://fishshell.com/docs/2.0/commands.html#command
>>
>> 'command cd' will execute fish's built-in 'cd', regardless of any function
>> of the same name.
>>
>> Happy fishing,
>>    --Torsten
>>
>> --
>> | Prof. Dr. Torsten Grust
>> | Database Systems — Universität Tübingen (Germany)
>> | torsten.gr...@uni-tuebingen.de
>> | db.inf.uni-tuebingen.de
>>
>>
>> ------------------------------------------------------------------------------
>> Try New Relic Now & We'll Send You this Cool Shirt
>> New Relic is the only SaaS-based application performance monitoring
>> service
>> that delivers powerful full stack analytics. Optimize and monitor your
>> browser, app, & servers with just a few lines of code. Try New Relic
>> and get this awesome Nerd Life shirt!
>> http://p.sf.net/sfu/newrelic_d2d_may
>> _______________________________________________
>> Fish-users mailing list
>> Fish-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/fish-users
>>
>
>
>
> ------------------------------------------------------------------------------
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring service
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
> _______________________________________________
> Fish-users mailing list
> Fish-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fish-users
>
>
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to