We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68e3b5c commit 1a07b33Copy full SHA for 1a07b33
Terminal/send-im
@@ -1,3 +1,7 @@
1
#!/bin/bash
2
3
-tee | EDITOR="vim -c startinsert" vipe | tee /tmp/.last_im | xargs -0 -i purple-remote-custom "facebook:goim?alias=$@&message={}"
+if [ -t 0 ]; then
4
+ echo | EDITOR="vim -c startinsert" vipe | tee /tmp/.last_im | xargs -0 -i purple-remote-custom "facebook:goim?alias=$@&message={}"
5
+else
6
+ tee | EDITOR="vim -c startinsert" vipe | tee /tmp/.last_im | xargs -0 -i purple-remote-custom "facebook:goim?alias=$@&message={}"
7
+fi
0 commit comments