dotfiles/fish/functions/confirm.fish

8 lines
90 B
Fish
Executable File

function confirm
echo "OK [y/N]?"
read confirm_result
test 'y' = $confirm_result
end