Sometimes, after I run some commands (for example git
commands), I discover that I forgot some configurations or forgot to put some requirements... . So I thought about displaying a message, to remind me or warn me, (like the one displayed when we run sudo apt upgrade
:
The following packages will be upgraded ... Do you want to continue [Y/n]?)
I want to get a similar message when I run a specific command ("Did you check the conf files, did you update the requirements file?) When I type Y, the command run and when I type n, the command stops.
How to do this in Ubuntu?