From 95a247891e60503b2dc8b2389e8b5a153bd0ac2d Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Mon, 3 Jan 2022 12:12:53 +0530 Subject: [PATCH] fish: conf/setup: Pass the shell syntax to use for fnm From the twitter discussion with fnm author, shell inference seems to be slow. Passing the shell to use manually seems to speed this up. fnm env --log-level=quiet | source Executed in 534.50 millis fish external usr time 0.62 millis 620.00 micros 0.00 millis sys time 4.76 millis 0.00 micros 4.76 millis fnm env --shell=fish --log-level=quiet | source Executed in 1.51 millis fish external usr time 1.06 millis 0.00 micros 1.06 millis sys time 0.58 millis 579.00 micros 0.00 millis Also, see the github issue https://github.com/Schniz/fnm/issues/621 --- fish/.config/fish/conf.d/setup.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fish/.config/fish/conf.d/setup.fish b/fish/.config/fish/conf.d/setup.fish index b9315e6..d303354 100644 --- a/fish/.config/fish/conf.d/setup.fish +++ b/fish/.config/fish/conf.d/setup.fish @@ -39,7 +39,7 @@ function __fish_setup_on_tty_login --description "Set up environment on tty logi end if type -qf fnm - fnm env | source + fnm env --shell=fish --log-level=quiet | source end set -gx CLICOLOR 1