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,9 +25,13 @@ 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
echo "prev: $dirprev[-1]
root: $root"
if string match -q "$root" "$dirprev[-1]"
__cd_orig - __cd_orig -
end end
end end
end
end end
function smartcd_update --description "Update smartcd.fish with the latest from the upstream." function smartcd_update --description "Update smartcd.fish with the latest from the upstream."