-
-
Save OrenBochman/c53dd3f3d73b6b7d3f0e8d8f07883e9b to your computer and use it in GitHub Desktop.
Revisions
-
sddamico revised this gist
Apr 9, 2015 . 1 changed file with 10 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,10 @@ gistp() { if [ -z "$1" ] ; then echo "Must supply filename for new gist" exit(1) else gisturl=$(pbpaste | gist -f $1) echo "Copying $gisturl to clipboard" echo "$gisturl" | pbcopy fi } -
sddamico created this gist
Apr 9, 2015 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ 76 gistp() {¬ 77 if [ -z "$1" ] ; then¬ 78 echo "Must supply filename for new gist"¬ 79 exit(1)¬ 80 else¬ ~ 81 gisturl=$(pbpaste | gist -f $1)¬ + 82 echo "Copying $gisturl to clipboard"¬ + 83 echo "$gisturl" | pbcopy¬ 84 fi¬ 85 }¬