Happy to help!
On Wed, May 22, 2013 at 7:53 PM, Robert Carpenter <rob...@robacarp.com>wrote:
> Welp, there it is. I feel silly. It is working now. I had just assumed
> that function was the fish builtin. I see that the fish version is much
> more elaborate.
>
> Thanks, Dag!
>
>
> On Wed, May 22, 2013 at 11:40 AM, dag.odenh...@gmail.com <
> dag.odenh...@gmail.com> wrote:
>
>> That there *is* calling `builtin cd`! I suggest removing it (presumably
>> you have that in ~/.config/fish/functions/cd.fish or something like that)
>> so the one that ships with fish is used instead, and then use a variable
>> listener function instead of a cwd event:
>>
>> function on_new_cwd -v PWD
>> echo new cwd is $PWD
>> end
>>
>>
>>
>> On Wed, May 22, 2013 at 4:01 PM, Robert Carpenter <rob...@robacarp.com>wrote:
>>
>>> On Wed, May 22, 2013 at 1:55 AM, dag.odenh...@gmail.com <
>>> dag.odenh...@gmail.com> wrote:
>>>
>>>> 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?
>>>>
>>>>
>>> Good thought, but I don't think so:
>>>
>>> rob ~> type cd
>>> cd is a function with definition
>>>
>>> function cd --description 'Change working directory'
>>> builtin cd $argv
>>> emit cwd
>>> end
>>>
>>> rob ~>
>>>
>>> I had a similar thought and went down this path in the past, I think.
>>> Any other ideas?
>>>
>>> Thanks
>>>
>>>
>>>> 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