Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hildenae@grune ~ $ cat bin/quit-all-weechat
- #!/bin/bash
- for fifo in ~/.weechat*/weechat_fifo_*
- do
- echo $fifo;
- if [ $# -eq 1 ]; then
- echo -e "$1" >$fifo
- else
- echo -e 'core.weechat */layout store\ncore.weechat */autojoin --run\ncore.weechat */quit -yes auto-quit from script' >$fifo
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment