MailMe is a super short ruby script that uses pony
to send yourself a file from the computer you're on.
git clone https://gist.github.com/cb0ca98e1b27342a6720.git ~/mailme
gem install pony
cd ~/mailme
ln -s $PWD/mailme /usr/local/bin/
The mailme
script is stored in the file ~/mailme/mailme
, and symlinked to your /usr/local/bin/
. After restarting your terminal, the command mailme
will be available.
mailme FILENAME.TXT
- The "me" is gleaned from your
git config --global user.email
- The file that is sent is provided as the first argument to the command.
- Warning: mail sent from the local computer via
pony
is often caught in a spam filter, make sure the message actually arrives in your inbox.
http://www.shelldorado.com/articles/mailattachments.html