zsh-users
 help / color / mirror / code / Atom feed
* Spawning services from Zshell, to have everything in zshrc
@ 2017-12-31 15:23 Sebastian Gniazdowski
  0 siblings, 0 replies; only message in thread
From: Sebastian Gniazdowski @ 2017-12-31 15:23 UTC (permalink / raw)
  To: Zsh Users

Hello
When I wanted to configure variables shared between Zshells, with `zdharma/zredis' plugin, I noted it doesn't look right that I have to revert to OS X `launchd' service manager. The variables are a shell thing, I set up them in zshrc, together with `zdharma/zredis' plugin, so I thought `redis-server' should be set up the same way.

I added such feature to Zplugin. To spawn a background service, one has to use "service" keyword (Ice-modifier):

zplugin ice service'redis'
zplugin light zservices/redis

The plugin `zservices/redis' is special, such plugins are listed on https://github.com/zservices

First Zshell that will gain a lock, will spawn the service. If this particular shell will be closed, next Zshell will pick up the service and spawn it. `zdharma/zredis` supports reconnecting, so restarts are no problem.

More information: https://github.com/zdharma/zplugin#news

--  
Sebastian Gniazdowski
psprint /at/ zdharma.org


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-12-31 15:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-31 15:23 Spawning services from Zshell, to have everything in zshrc Sebastian Gniazdowski

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).