Kagee

Untitled

Jan 29th, 2015
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.30 KB | None | 0 0
  1. hildenae@grune ~ $ cat bin/quit-all-weechat
  2. #!/bin/bash
  3. for fifo in ~/.weechat*/weechat_fifo_*
  4. do
  5. echo $fifo;
  6. if [ $# -eq 1 ]; then
  7.   echo -e "$1" >$fifo
  8. else
  9.   echo -e 'core.weechat */layout store\ncore.weechat */autojoin --run\ncore.weechat */quit -yes auto-quit from script' >$fifo
  10. fi
  11. done
Advertisement
Add Comment
Please, Sign In to add comment