AutoYADM commit: 2025-04-18 15:15:06

This commit is contained in:
Daniel Fichtinger 2025-04-18 15:15:06 -04:00
parent f2c722eeaa
commit 49aa56f959

View file

@ -34,7 +34,17 @@ function cd --wraps=cd --description "Change directory. No args goes to git root
__cd_orig - __cd_orig -
else else
set -l prompt "This would take you to $dirprev[-1], which is outside $root, are you sure? (y/n): " set -l prompt "This would take you to $dirprev[-1], which is outside $root, are you sure? (y/n): "
echo $prompt while read --nchars 1 -l response --prompt-str="$prompt" or return 1
switch $response
case y Y
__cd_orig -
break
case n N
break
case '*'
continue
end
end
end end
end end
end end