fish-shell/share
Kurtis Rader 9d2b53450a limit size of cd history to 25 directories
The existing implementation grows the $dirprev array without bounds. Besides
causing what would appear to be a memory leak it also makes the nextd and
prevd commands more expensive than they need to be. It also makes it harder to
create a useful "menu" cd command.

In addition to implementing a reasonable limit on the size of the $dirprev
array I've reformatted the code using fish_indent.

Update the documentation to include mentions of the $dirprev and $dirnext
variables as well as the limit on how much directory history is kept.

Fixes 2836
2016-03-23 13:36:00 -07:00
..
completions Add --no-index option completion for git diff 2016-03-20 10:10:51 -05:00
functions limit size of cd history to 25 directories 2016-03-23 13:36:00 -07:00
tools Fix acpi check in nim prompt 2016-03-20 12:20:39 +01:00
config.fish Move code in etc/config.fish to share/config.fish 2016-03-09 13:07:04 +01:00