fix(deps): consolidate install prompt into read -P to prevent display race

This commit is contained in:
2026-05-18 22:07:50 -04:00
parent 0e7e824085
commit a7c6b9097d
+1 -2
View File
@@ -71,8 +71,7 @@ function _fish_deps_install
end end
# Prompt: install this dep? # Prompt: install this dep?
set_color cyan; echo -n "Install $bin? "; set_color normal read -l -P (set_color cyan)"Install $bin?"(set_color normal)" [Y/n] " _reply
read -l -P "[Y/n] " _reply
if test "$_reply" = n; or test "$_reply" = N if test "$_reply" = n; or test "$_reply" = N
set i (math $i + 1) set i (math $i + 1)
continue continue