aboutsummaryrefslogtreecommitdiffstats
path: root/twittperator
diff options
context:
space:
mode:
authoranekos2012-05-02 06:33:04 +0900
committeranekos2012-05-02 06:33:55 +0900
commit73a984d0080042488748ad9bf690fa588f3793fc (patch)
tree385a4cf28d061717d1a2ceb00b574815502f752f /twittperator
parentb9272245ac74b5ff4580c46accd4301bdbf95c76 (diff)
downloadvimperator-plugins-73a984d0080042488748ad9bf690fa588f3793fc.tar.bz2
亜同期
Diffstat (limited to 'twittperator')
-rw-r--r--twittperator/eject-alert.tw5
1 files changed, 3 insertions, 2 deletions
diff --git a/twittperator/eject-alert.tw b/twittperator/eject-alert.tw
index 9e6fe5a..08b3eaf 100644
--- a/twittperator/eject-alert.tw
+++ b/twittperator/eject-alert.tw
@@ -1,16 +1,17 @@
/*
* Please write the below line into .vimperatorrc.
- * let g:twittperator_plugin_reply_eject_alert = 1
+ * let g:twittperator_plugin_eject_alert = 1
* let g:twittperator_screen_name = "<YOUR_SCREEN_NAME>"
*/
(function () {
let screenName = liberator.globalVariables.twittperator_screen_name;
+ let dev = function () (liberator.globalVariables.twittperator_plugin_eject_alert_device || '');
plugins.twittperator.ChirpUserStream.addListener(
function onMsg (msg, raw) {
if (msg.text && msg.user && msg.in_reply_to_screen_name === screenName)
- io.system('eject && eject -t');
+ io.system('sh -c "' + ['eject', dev(), '&&', 'eject', '-t', dev()].join(' ') + '" &');
}
);
})();