Because alias creates a function and pushd calls cd as a command which
includes functions. But you don't really need to do this in fish because it
already has a directory history that cd updates, and you can navigate it
with prevd/nextd or Alt-left/right arrows.


On Tue, May 21, 2013 at 2:47 PM, John Chludzinski <
john.chludzin...@gmail.com> wrote:

> 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 ...
>
> Why?
>
> ---John
>
>
> ------------------------------------------------------------------------------
> 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