uriel1998

Untitled

Sep 24th, 2012
539
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #!/bin/bash
  2. # this wrapper simply uses bitly.py and clip to put it back on the clipboard for the browser...
  3. # *nix and OSX - set the permissions to execute for this file. I call it bashbitly
  4. # OSX folks, change xsel to whatever pbclip needs
  5.  
  6. python /path/to/script/bitly.py "$1" | xsel -i -b
  7.  
  8. #REM WINDOWS PEOPLE ERASE EVERYTHING ABOVE THIS LINE AND ALL # MARKS THROUGHOUT
  9. #REM Call it cmdbitly.bat
  10. #@ECHO OFF
  11. #python c:\path\to\file\bitly.py "%1" | clip
Advertisement
Add Comment
Please, Sign In to add comment