Skip to content

zi srv

Control a background service plugin — start, stop, restart, advance to the next Zsh instance, or quit it entirely. Services are plugins loaded with the service ice modifier.

Terminal window
zi srv {service-id} [cmd]

Available commands:

cmdEffect
startStart the service
stopStop the service
restartRestart the service
nextMove the service to a different Zsh instance
quitTerminate the service

Services are plugins or snippets that run as long-lived background processes, managed by Zinit across Zsh instances. Only one Zsh instance runs a given service at a time. The service ice modifier marks a plugin as a service at load time. srv provides runtime control over that lifecycle.

Terminal window
# Stop a running service
zi srv my-service stop
# Restart a service
zi srv my-service restart
# Move service to another Zsh shell instance
zi srv my-service next
  • cmd-load
  • cmd-ice