Skip to content

Instantly share code, notes, and snippets.

/gist

Created June 20, 2016 21:04
Show Gist options
  • Save anonymous/b295a0a8b99a5ea258b3fd3c8c31927d to your computer and use it in GitHub Desktop.
Save anonymous/b295a0a8b99a5ea258b3fd3c8c31927d to your computer and use it in GitHub Desktop.
#!/bin/bash
paste_command="/usr/bin/gist-paste $1"
#paste_command="/usr/bin/gist-paste -p --login $1"
#paste_command="/usr/bin/gist-paste --description=$2 $1"
#paste_command="/usr/bin/pastebinit"
black="\e[00;30m"
red="\e[00;31m"
green="\e[00;32m"
yellow="\e[00;33m"
blue="\e[00;34m"
magenta="\e[00;35m"
cyan="\e[00;36m"
white="\e[00;37m"
gray="\e[00;38m"
normal="\e[00m"
printf "\n"
printf "${yellow}This command posts the contents of this file ${red}publicly to the Internet.${normal}\n"
printf "${yellow}If you're sure, type ${green}yes${normal}: "
read verify
case $verify in
yes|Yes)
printf "\n"
$paste_command
;;
**)
exit 0
;;
esac
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment