From fdf077274a4e21e5ee183c7ee095c6edc17c7d31 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Fri, 18 Apr 2025 14:45:06 -0400 Subject: [PATCH] AutoYADM commit: 2025-04-18 14:45:05 --- .config/fish/conf.d/smartcd.fish | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.config/fish/conf.d/smartcd.fish b/.config/fish/conf.d/smartcd.fish index a3a7d44b..198752ca 100644 --- a/.config/fish/conf.d/smartcd.fish +++ b/.config/fish/conf.d/smartcd.fish @@ -25,7 +25,11 @@ function cd --wraps=cd --description "Change directory. No args goes to git root if not test (pwd) = $root __cd_orig $root else - __cd_orig - + echo "prev: $dirprev[-1] + root: $root" + if string match -q "$root" "$dirprev[-1]" + __cd_orig - + end end end end