/confirm.sh

A simple script to ask for user confirmation on shell commands

Primary LanguageShell

confirm.sh

A simple script to ask for user confirmation on shell commands

Usage

$ confirm 'u sure mate?' && rm somefile

Output:
u sure mate? [y/N]

or

$ confirm && rm somefile

Output:
Are you sure? [y/N]

Installing

git clone git@github.com:matheusbn/confirm.sh.git && cd confirm.sh && ./install.sh