AutoYADM commit: 2025-04-18 15:15:06
This commit is contained in:
parent
f2c722eeaa
commit
49aa56f959
1 changed files with 11 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue