Skip to content

A simple script to ask for user confirmation on shell commands

Notifications You must be signed in to change notification settings

matheusbn/confirm.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

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

About

A simple script to ask for user confirmation on shell commands

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages