fish-shell/share
Fabian Boehm 1a11cee559 functions/cd: Optimize check for too many args
This ran two `test`s a `count` and one `echo`, which is a bit wasteful.

So instead, for the common case where you pass one argument, this will
run one `set -q`.

This can save off ~160 microseconds for each ordinary `cd`, which
speeds it up by a factor of ~2 (so 1000 runs of cd might take 260ms
instead of 550ms).

Ideally the cd function would just be incorporated into the builtin,
but that's a bigger change.
2023-07-11 18:01:29 +02:00
..
completions Fix rclone autocompletion script sourcing issue in fish shell 2023-07-07 21:34:12 +02:00
functions functions/cd: Optimize check for too many args 2023-07-11 18:01:29 +02:00
groff
tools improved print CSS for fish_config 2023-06-10 09:47:01 +02:00
__fish_build_paths.fish.in
config.fish share/config.fish: Quit if job expansion hack errors 2023-06-10 15:36:36 +02:00