diff options
author | anekos | 2012-05-02 06:33:04 +0900 |
---|---|---|
committer | anekos | 2012-05-02 06:33:55 +0900 |
commit | 73a984d0080042488748ad9bf690fa588f3793fc (patch) | |
tree | 385a4cf28d061717d1a2ceb00b574815502f752f /twittperator | |
parent | b9272245ac74b5ff4580c46accd4301bdbf95c76 (diff) | |
download | vimperator-plugins-73a984d0080042488748ad9bf690fa588f3793fc.tar.bz2 |
δΊεζ
Diffstat (limited to 'twittperator')
-rw-r--r-- | twittperator/eject-alert.tw | 5 |
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(' ') + '" &'); } ); })(); |