AutoYADM commit: 2025-04-18 14:45:05

This commit is contained in:
Daniel Fichtinger 2025-04-18 14:45:06 -04:00
parent 653765c70b
commit fdf077274a

View file

@ -25,7 +25,11 @@ function cd --wraps=cd --description "Change directory. No args goes to git root
if not test (pwd) = $root if not test (pwd) = $root
__cd_orig $root __cd_orig $root
else else
__cd_orig - echo "prev: $dirprev[-1]
root: $root"
if string match -q "$root" "$dirprev[-1]"
__cd_orig -
end
end end
end end
end end