ignore some FORMAT on config command and display direct link in share function inside...
[rainbowstream.git] / rainbowstream / rainbow.py
index 49e3308f7fe70654b3a8c33ee4a1cd8b70f49280..765ce389d6eb03ff7841ffa5e0436d8e4551e32e 100644 (file)
@@ -496,8 +496,12 @@ def share():
     tweet = t.statuses.show(id=tid)
     url = 'https://twitter.com/' + \
         tweet['user']['screen_name'] + '/status/' + str(tid)
-    os.system("echo '%s' | pbcopy" % url)
-    printNicely(green('Copied tweet\'s url to clipboard.'))
+    import platform
+    if platform.system().lower() == 'darwin':
+        os.system("echo '%s' | pbcopy" % url)
+        printNicely(green('Copied tweet\'s url to clipboard.'))
+    else:
+        printNicely('Direct link: ' + yellow(url))
 
 
 def delete():