Skip to content

Instantly share code, notes, and snippets.

@pielgrzym
Last active September 28, 2015 13:18
Show Gist options
  • Save pielgrzym/1444800 to your computer and use it in GitHub Desktop.
Save pielgrzym/1444800 to your computer and use it in GitHub Desktop.
function rconfirm(){
if [[ ${SSH_CONNECTION:0} != 0 ]];then
local confirm
echo " ___ "
echo "{o,o}"
echo "|)__)"
echo "-\"-\"-"
echo "O RLY?"
read -q confirm
if [[ $confirm == "y" || $confirm == "t" ]]; then
"$@"
else
echo "\n"
echo " ___ "
echo "{o,o}"
echo "(__(|"
echo "-\"-\"-"
echo "NO WAI!"
fi
else
"$@"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment