dotfiles/fish/functions/confirm.fish

8 lines
90 B
Fish
Raw Normal View History

2009-06-10 13:04:31 +10:00
function confirm
echo "OK [y/N]?"
read confirm_result
test 'y' = $confirm_result
end