From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13823 invoked by alias); 31 Dec 2017 15:23:46 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 23041 Received: (qmail 11448 invoked by uid 1010); 31 Dec 2017 15:23:46 -0000 X-Qmail-Scanner-Diagnostics: from aok120.rev.netart.pl by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(85.128.245.120):SA:0(-1.9/5.0):. Processed in 12.969729 secs); 31 Dec 2017 15:23:46 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: psprint@zdharma.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Virus-Scanned: by amavisd-new using ClamAV (11) Date: Sun, 31 Dec 2017 16:23:28 +0100 From: Sebastian Gniazdowski To: Zsh Users Message-ID: Subject: Spawning services from Zshell, to have everything in zshrc X-Mailer: Airmail (442) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello When I wanted to configure variables shared between Zshells, with =60zdha= rma/zredis' plugin, I noted it doesn't look right that I have to revert t= o OS X =60launchd' service manager. The variables are a shell thing, I se= t up them in zshrc, together with =60zdharma/zredis' plugin, so I thought= =60redis-server' should be set up the same way. I added such feature to Zplugin. To spawn a background service, one has t= o use =22service=22 keyword (Ice-modifier): zplugin ice service'redis' zplugin light zservices/redis The plugin =60zservices/redis' is special, such plugins are listed on=C2=A0= https://github.com/zservices =46irst Zshell that will gain a lock, will spawn the service. If this par= ticular shell will be closed, next Zshell will pick up the service and sp= awn it. =60zdharma/zredis=60 supports reconnecting, so restarts are no pr= oblem. More information:=C2=A0https://github.com/zdharma/zplugin=23news -- =20 Sebastian Gniazdowski psprint /at/ zdharma.org