Last active
September 28, 2015 13:18
-
-
Save pielgrzym/1444800 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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