Update fish's only usage of read -s to use read --shell instead

This commit is contained in:
Mahmoud Al-Qudsi 2018-03-09 11:55:12 -06:00
parent f8ec1e4a7b
commit 2a266c4d48

View file

@ -61,7 +61,7 @@ function funced --description 'Edit function definition'
end
set -l prompt 'printf "%s%s%s> " (set_color green) '$funcname' (set_color normal)'
if read -p $prompt -c "$init" -s cmd
if read -p $prompt -c "$init" --shell cmd
echo -n $cmd | fish_indent | read -lz cmd
eval "$cmd"
end